Skip to content

modern-pdf-lib


modern-pdf-lib / ButtonAppearanceOptions

Interface: ButtonAppearanceOptions

Defined in: src/form/fieldAppearance.ts:403

Options for generating a button field appearance.

Properties

caption

caption: string

Defined in: src/form/fieldAppearance.ts:405

The button caption text.


fontName?

optional fontName: string

Defined in: src/form/fieldAppearance.ts:409

Font name. Default: "Helv".


fontSize?

optional fontSize: number

Defined in: src/form/fieldAppearance.ts:411

Font size. Default: 0 (auto).


rect

rect: [number, number, number, number]

Defined in: src/form/fieldAppearance.ts:407

The widget rectangle [x1, y1, x2, y2].

Released under the MIT License.