modern-pdf-lib / DrawRectangleOptions
Interface: DrawRectangleOptions
Defined in: src/core/pdfPage.ts:253
Options for PdfPage.drawRectangle.
Properties
blendMode?
optionalblendMode:BlendMode
Defined in: src/core/pdfPage.ts:273
Blend mode for compositing.
borderColor?
optionalborderColor:Color
Defined in: src/core/pdfPage.ts:265
Border (stroke) colour. Set to undefined for no stroke.
borderDashArray?
optionalborderDashArray:number[]
Defined in: src/core/pdfPage.ts:279
Dash pattern for border [dashLen, gapLen, ...].
borderDashPhase?
optionalborderDashPhase:number
Defined in: src/core/pdfPage.ts:281
Dash phase offset for border.
borderLineCap?
optionalborderLineCap:0|1|2
Defined in: src/core/pdfPage.ts:283
Line cap style for border (0 = butt, 1 = round, 2 = projecting square).
borderOpacity?
optionalborderOpacity:number
Defined in: src/core/pdfPage.ts:285
Border stroke opacity [0, 1], separate from fill opacity.
borderWidth?
optionalborderWidth:number
Defined in: src/core/pdfPage.ts:267
Border width in points.
color?
optionalcolor:Color
Defined in: src/core/pdfPage.ts:263
Fill colour. Set to undefined for no fill.
height?
optionalheight:number
Defined in: src/core/pdfPage.ts:261
Rectangle height.
opacity?
optionalopacity:number
Defined in: src/core/pdfPage.ts:271
Opacity [0, 1].
rotate?
optionalrotate:Angle
Defined in: src/core/pdfPage.ts:269
Rotation angle.
width?
optionalwidth:number
Defined in: src/core/pdfPage.ts:259
Rectangle width.
x?
optionalx:number
Defined in: src/core/pdfPage.ts:255
X coordinate.
xSkew?
optionalxSkew:Angle
Defined in: src/core/pdfPage.ts:275
Horizontal skew angle.
y?
optionaly:number
Defined in: src/core/pdfPage.ts:257
Y coordinate.
ySkew?
optionalySkew:Angle
Defined in: src/core/pdfPage.ts:277
Vertical skew angle.