Skip to content

zeropdf v1.5.5


zeropdf / FlowChoiceFieldOptions

Interface: FlowChoiceFieldOptions

Defined in: src/types.ts:1266

Options for placing a choice form field through the flow layout API.

Extends

Properties

PropertyTypeDescriptionInherited fromDefined in
actions?FieldActionsJavaScript actions attached to this field's /AA dictionary. Each action value is raw PDF JavaScript source code.ChoiceFieldOptions.actionssrc/types.ts:2709
appearance?stringCustom appearance stream content for the choice field. Example: "1 0 0 rg 0 0 100 20 re f"ChoiceFieldOptions.appearancesrc/types.ts:2704
borderWidth?numberAnnotation or field border width in PDF points.ChoiceFieldOptions.borderWidthsrc/types.ts:2681
color?ColorInputColor used for drawing, text, or highlighting.ChoiceFieldOptions.colorsrc/types.ts:2679
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.ChoiceFieldOptions.descriptionsrc/types.ts:2661
editable?booleanWhen true, the combo box allows user to type custom values. When false (default), combo box is select-only. Has no effect on list boxes.ChoiceFieldOptions.editablesrc/types.ts:2693
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).ChoiceFieldOptions.encryptsrc/types.ts:2699
font?FontNameFont used to render text.ChoiceFieldOptions.fontsrc/types.ts:2675
fontSize?numberFont size in PDF points.ChoiceFieldOptions.fontSizesrc/types.ts:2677
heightnumberHeight in PDF points.ChoiceFieldOptions.heightsrc/types.ts:2669
margin?FlowMarginShorthandCSS-like margin shorthand in PDF points.FlowBlockSpacingOptions.marginsrc/types.ts:1137
marginBottom?numberBottom margin in PDF points.FlowBlockSpacingOptions.marginBottomsrc/types.ts:1143
marginLeft?numberLeft margin in PDF points.FlowBlockSpacingOptions.marginLeftsrc/types.ts:1145
marginRight?numberRight margin in PDF points.FlowBlockSpacingOptions.marginRightsrc/types.ts:1141
marginTop?numberTop margin in PDF points.FlowBlockSpacingOptions.marginTopsrc/types.ts:1139
mode?ChoiceFieldModeChoice field display mode.ChoiceFieldOptions.modesrc/types.ts:2687
optionsstring[]Options that control this item.ChoiceFieldOptions.optionssrc/types.ts:2671
readOnly?booleanWhether the form field is read-only.ChoiceFieldOptions.readOnlysrc/types.ts:2683
required?booleanWhether the form field is required.ChoiceFieldOptions.requiredsrc/types.ts:2685
structure?PdfStructureOptionsAdditional structure metadata for tagged PDF output.ChoiceFieldOptions.structuresrc/types.ts:2713
tag?"Annot" | "Artifact"Structure tag used for tagged PDF output.ChoiceFieldOptions.tagsrc/types.ts:2711
value?stringCurrent or default value for the option.ChoiceFieldOptions.valuesrc/types.ts:2673
width?numberWidth override in PDF points.-src/types.ts:1273
x?numberHorizontal position override in PDF points.-src/types.ts:1269
y?numberVertical position override in PDF points.-src/types.ts:1271

Released under the ISC license.