sempdf v1.9.1Interfaces
Interface: FlowPushButtonOptions
sempdf / FlowPushButtonOptions
Defined in: src/types.ts:1558
Options for placing a push-button form field through the flow layout API.
Extends
Omit<PushButtonOptions,FlowBoxKeys>.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:3440 |
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:3435 |
borderWidth? | number | Annotation or field border width in PDF points. | PushButtonOptions.borderWidth | src/types.ts:3422 |
color? | ColorInput | Color used for drawing, text, or highlighting. | PushButtonOptions.color | src/types.ts:3420 |
description? | string | Field description, emitted as /TU (the field's user-facing name). Assistive technology reads it as the field's accessible name, and it satisfies the "form fields have a description" accessibility check. | PushButtonOptions.description | src/types.ts:3404 |
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:3430 |
font? | FontName | Font used to render text. | PushButtonOptions.font | src/types.ts:3416 |
fontSize? | number | Font size in PDF points. | PushButtonOptions.fontSize | src/types.ts:3418 |
height | number | Height in PDF points. | PushButtonOptions.height | src/types.ts:3412 |
label | string | Explicit list marker or button label text. | PushButtonOptions.label | src/types.ts:3414 |
margin? | FlowMarginShorthand | CSS-like margin shorthand in PDF points. | FlowBlockSpacingOptions.margin | src/types.ts:1271 |
marginBottom? | number | Bottom margin in PDF points. | FlowBlockSpacingOptions.marginBottom | src/types.ts:1277 |
marginLeft? | number | Left margin in PDF points. | FlowBlockSpacingOptions.marginLeft | src/types.ts:1279 |
marginRight? | number | Right margin in PDF points. | FlowBlockSpacingOptions.marginRight | src/types.ts:1275 |
marginTop? | number | Top margin in PDF points. | FlowBlockSpacingOptions.marginTop | src/types.ts:1273 |
readOnly? | boolean | Whether the form field is read-only. | PushButtonOptions.readOnly | src/types.ts:3424 |
structure? | PdfStructureOptions | Additional structure metadata for tagged PDF output. | PushButtonOptions.structure | src/types.ts:3444 |
tag? | AnnotTagOrArtifact | Structure tag used for tagged PDF output. | PushButtonOptions.tag | src/types.ts:3442 |
width? | number | Width override in PDF points. | - | src/types.ts:1565 |
x? | number | Horizontal position override in PDF points. | - | src/types.ts:1561 |
y? | number | Vertical position override in PDF points. | - | src/types.ts:1563 |