Skip to content

modern-pdf-lib


modern-pdf-lib / DrawSvgPathOptions

Interface: DrawSvgPathOptions

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

Options for PdfPage.drawSvgPath.

Properties

blendMode?

optional blendMode: BlendMode

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

Blend mode for compositing.


borderColor?

optional borderColor: Color

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

Border (stroke) colour.


borderDashArray?

optional borderDashArray: number[]

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

Dash pattern for border.


borderDashPhase?

optional borderDashPhase: number

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

Dash phase offset for border.


borderLineCap?

optional borderLineCap: 0 | 1 | 2

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

Line cap style for border.


borderOpacity?

optional borderOpacity: number

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

Border stroke opacity [0, 1].


borderWidth?

optional borderWidth: number

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

Border width in points.


color?

optional color: Color

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

Fill colour.


opacity?

optional opacity: number

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

Opacity [0, 1].


scale?

optional scale: number

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

Uniform scale factor applied to the path.


x?

optional x: number

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

X translation (PDF coordinates).


y?

optional y: number

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

Y translation (PDF coordinates).

Released under the MIT License.