Skip to content

happypdf / rectangle

Function: rectangle()

ts
function rectangle(
   xPos, 
   yPos, 
   width, 
   height): PDFOperator;

Defined in: src/api/operators.ts:163

Parameters

ParameterTypeDescription
xPosnumber | PDFNumberx coordinate for the lower left corner of the rectangle
yPosnumber | PDFNumbery coordinate for the lower left corner of the rectangle
widthnumber | PDFNumberwidth of the rectangle
heightnumber | PDFNumberheight of the rectangle

Returns

PDFOperator

MIT Licensed. A fork of pdf-lib.