Skip to content

modern-pdf-lib


modern-pdf-lib / DrawLineOptions

Interface: DrawLineOptions

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

Options for PdfPage.drawLine.

Properties

blendMode?

optional blendMode: BlendMode

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

Blend mode for compositing.


color?

optional color: Color

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

Line colour.


dashArray?

optional dashArray: number[]

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

Dash pattern [dashLength, gapLength].


dashPhase?

optional dashPhase: number

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

Dash phase.


end

end: object

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

End point.

x

x: number

y

y: number


opacity?

optional opacity: number

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

Opacity [0, 1].


start

start: object

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

Start point.

x

x: number

y

y: number


thickness?

optional thickness: number

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

Line width.

Released under the MIT License.