Appearance
zeropdf / FlowPushButtonOptions
Interface: FlowPushButtonOptions
Defined in: src/types.ts:1287
Options for placing a push-button form field through the flow layout API.
Extends
Omit<PushButtonOptions,"x"|"y"|"width">.FlowBlockSpacingOptions
Properties
| Property | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|
actions? | FieldActions | JavaScript actions attached to this field's /AA dictionary. Each action value is raw PDF JavaScript source code. | PushButtonOptions.actions | src/types.ts:2765 |
appearance? | string | Custom appearance stream content for the push button. Example: "1 0 0 rg 0 0 100 20 re f" | PushButtonOptions.appearance | src/types.ts:2760 |
borderWidth? | number | Annotation or field border width in PDF points. | PushButtonOptions.borderWidth | src/types.ts:2747 |
color? | ColorInput | Color used for drawing, text, or highlighting. | PushButtonOptions.color | src/types.ts:2745 |
encrypt? | boolean | Whether the field value follows document encryption. When false, the field value is not encrypted (useful for searchable fields). Defaults to true (follow document encryption). | PushButtonOptions.encrypt | src/types.ts:2755 |
font? | FontName | Font used to render text. | PushButtonOptions.font | src/types.ts:2741 |
fontSize? | number | Font size in PDF points. | PushButtonOptions.fontSize | src/types.ts:2743 |
height | number | Height in PDF points. | PushButtonOptions.height | src/types.ts:2737 |
label | string | Explicit list marker or button label text. | PushButtonOptions.label | src/types.ts:2739 |
margin? | FlowMarginShorthand | CSS-like margin shorthand in PDF points. | FlowBlockSpacingOptions.margin | src/types.ts:1137 |
marginBottom? | number | Bottom margin in PDF points. | FlowBlockSpacingOptions.marginBottom | src/types.ts:1143 |
marginLeft? | number | Left margin in PDF points. | FlowBlockSpacingOptions.marginLeft | src/types.ts:1145 |
marginRight? | number | Right margin in PDF points. | FlowBlockSpacingOptions.marginRight | src/types.ts:1141 |
marginTop? | number | Top margin in PDF points. | FlowBlockSpacingOptions.marginTop | src/types.ts:1139 |
readOnly? | boolean | Whether the form field is read-only. | PushButtonOptions.readOnly | src/types.ts:2749 |
structure? | PdfStructureOptions | Additional structure metadata for tagged PDF output. | PushButtonOptions.structure | src/types.ts:2769 |
tag? | "Annot" | "Artifact" | Structure tag used for tagged PDF output. | PushButtonOptions.tag | src/types.ts:2767 |
width? | number | Width override in PDF points. | - | src/types.ts:1294 |
x? | number | Horizontal position override in PDF points. | - | src/types.ts:1290 |
y? | number | Vertical position override in PDF points. | - | src/types.ts:1292 |