Skip to main content

Interface: FlowPushButtonOptions

Options for placing a push-button form field through the flow layout API.

Extends

Properties

PropertyTypeDescriptionInherited from
actions?FieldActionsJavaScript actions attached to this field's /AA dictionary. Each action value is raw PDF JavaScript source code.PushButtonOptions.actions
appearance?stringCustom appearance stream content for the push button. Example: "1 0 0 rg 0 0 100 20 re f"PushButtonOptions.appearance
borderWidth?numberAnnotation or field border width in PDF points.PushButtonOptions.borderWidth
color?ColorInputColor used for drawing, text, or highlighting.PushButtonOptions.color
description?stringField 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
encrypt?booleanWhether 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
font?FontNameFont used to render text.PushButtonOptions.font
fontSize?numberFont size in PDF points.PushButtonOptions.fontSize
heightnumberHeight in PDF points.PushButtonOptions.height
labelstringExplicit list marker or button label text.PushButtonOptions.label
margin?FlowMarginShorthandCSS-like margin shorthand in PDF points.FlowBlockSpacingOptions.margin
marginBottom?numberBottom margin in PDF points.FlowBlockSpacingOptions.marginBottom
marginLeft?numberLeft margin in PDF points.FlowBlockSpacingOptions.marginLeft
marginRight?numberRight margin in PDF points.FlowBlockSpacingOptions.marginRight
marginTop?numberTop margin in PDF points.FlowBlockSpacingOptions.marginTop
readOnly?booleanWhether the form field is read-only.PushButtonOptions.readOnly
structure?PdfStructureOptionsAdditional structure metadata for tagged PDF output.PushButtonOptions.structure
tag?"Annot" | "Artifact"Structure tag used for tagged PDF output.PushButtonOptions.tag
width?numberWidth override in PDF points.-
x?numberHorizontal position override in PDF points.-
y?numberVertical position override in PDF points.-