Skip to content

modern-pdf-lib


modern-pdf-lib / DrawImageOptions

Interface: DrawImageOptions

Defined in: src/core/pdfPage.ts:231

Options for PdfPage.drawImage.

Properties

blendMode?

optional blendMode: BlendMode

Defined in: src/core/pdfPage.ts:245

Blend mode for compositing.


height?

optional height: number

Defined in: src/core/pdfPage.ts:239

Rendered height.


opacity?

optional opacity: number

Defined in: src/core/pdfPage.ts:243

Opacity [0, 1].


rotate?

optional rotate: Angle

Defined in: src/core/pdfPage.ts:241

Rotation angle.


width?

optional width: number

Defined in: src/core/pdfPage.ts:237

Rendered width.


x?

optional x: number

Defined in: src/core/pdfPage.ts:233

X coordinate of the lower-left corner.


xSkew?

optional xSkew: Angle

Defined in: src/core/pdfPage.ts:247

Horizontal skew angle.


y?

optional y: number

Defined in: src/core/pdfPage.ts:235

Y coordinate of the lower-left corner.


ySkew?

optional ySkew: Angle

Defined in: src/core/pdfPage.ts:249

Vertical skew angle.

Released under the MIT License.