Skip to content

happypdf / square

Function: square()

ts
function square(
   xPos, 
   yPos, 
   size): PDFOperator;

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

Parameters

ParameterTypeDescription
xPosnumberx coordinate for the lower left corner of the square
yPosnumbery coordinate for the lower left corner of the square
sizenumberwidth and height of the square

Returns

PDFOperator

MIT Licensed. A fork of pdf-lib.