happypdf / rectangle
Function: rectangle()
ts
function rectangle(
xPos,
yPos,
width,
height): PDFOperator;Defined in: src/api/operators.ts:163
Parameters
| Parameter | Type | Description |
|---|---|---|
xPos | number | PDFNumber | x coordinate for the lower left corner of the rectangle |
yPos | number | PDFNumber | y coordinate for the lower left corner of the rectangle |
width | number | PDFNumber | width of the rectangle |
height | number | PDFNumber | height of the rectangle |