Skip to content

a11ydocs v1.7.0


a11ydocs / 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:2738
appearance?stringCustom appearance stream content for the choice field. Example: "1 0 0 rg 0 0 100 20 re f"ChoiceFieldOptions.appearancesrc/types.ts:2733
borderWidth?numberAnnotation or field border width in PDF points.ChoiceFieldOptions.borderWidthsrc/types.ts:2710
color?ColorInputColor used for drawing, text, or highlighting.ChoiceFieldOptions.colorsrc/types.ts:2708
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:2690
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:2722
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:2728
font?FontNameFont used to render text.ChoiceFieldOptions.fontsrc/types.ts:2704
fontSize?numberFont size in PDF points.ChoiceFieldOptions.fontSizesrc/types.ts:2706
heightnumberHeight in PDF points.ChoiceFieldOptions.heightsrc/types.ts:2698
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:2716
optionsstring[]Options that control this item.ChoiceFieldOptions.optionssrc/types.ts:2700
readOnly?booleanWhether the form field is read-only.ChoiceFieldOptions.readOnlysrc/types.ts:2712
required?booleanWhether the form field is required.ChoiceFieldOptions.requiredsrc/types.ts:2714
structure?PdfStructureOptionsAdditional structure metadata for tagged PDF output.ChoiceFieldOptions.structuresrc/types.ts:2742
tag?"Annot" | "Artifact"Structure tag used for tagged PDF output.ChoiceFieldOptions.tagsrc/types.ts:2740
value?stringCurrent or default value for the option.ChoiceFieldOptions.valuesrc/types.ts:2702
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.