sempdf
sempdf v1.9.1Interfaces

Interface: ChoiceFieldOptions

sempdf v1.9.1


sempdf / ChoiceFieldOptions

Defined in: src/types.ts:3275

Options for creating a list box or combo box form field.

Properties

PropertyTypeDescriptionDefined in
actions?FieldActionsJavaScript actions attached to this field's /AA dictionary. Each action value is raw PDF JavaScript source code.src/types.ts:3329
appearance?stringCustom appearance stream content for the choice field. Example: "1 0 0 rg 0 0 100 20 re f"src/types.ts:3324
borderWidth?numberAnnotation or field border width in PDF points.src/types.ts:3301
color?ColorInputColor used for drawing, text, or highlighting.src/types.ts:3299
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.src/types.ts:3281
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.src/types.ts:3313
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).src/types.ts:3319
font?FontNameFont used to render text.src/types.ts:3295
fontSize?numberFont size in PDF points.src/types.ts:3297
heightnumberHeight in PDF points.src/types.ts:3289
mode?ChoiceFieldModeChoice field display mode.src/types.ts:3307
optionsstring[]Options that control this item.src/types.ts:3291
readOnly?booleanWhether the form field is read-only.src/types.ts:3303
required?booleanWhether the form field is required.src/types.ts:3305
structure?PdfStructureOptionsAdditional structure metadata for tagged PDF output.src/types.ts:3333
tag?AnnotTagOrArtifactStructure tag used for tagged PDF output.src/types.ts:3331
value?stringCurrent or default value for the option.src/types.ts:3293
widthnumberWidth in PDF points.src/types.ts:3287
xnumberHorizontal position in PDF points.src/types.ts:3283
ynumberVertical position in PDF points.src/types.ts:3285

On this page