modern-pdf-lib / FieldFlags
Variable: FieldFlags
constFieldFlags:object
Defined in: src/form/pdfField.ts:55
Common field flags (/Ff) — bit positions (0-indexed).
Type Declaration
Combo
readonlyCombo:number
Bit 17: The field is a combo box (dropdown).
DoNotScroll
readonlyDoNotScroll:number
Bit 20: The field shall not scroll.
Edit
readonlyEdit:number
Bit 18: The combo box includes an editable text field.
Multiline
readonlyMultiline:number
Bit 12: The field may contain multiple lines.
MultiSelect
readonlyMultiSelect:number
Bit 21: More than one item may be selected.
NoExport
readonlyNoExport:number
Bit 2: The field shall not be exported.
NoToggleToOff
readonlyNoToggleToOff:number
Bit 14: No toggle to off (for radio buttons).
Password
readonlyPassword:number
Bit 13: The field is intended for entering a password.
Pushbutton
readonlyPushbutton:number
Bit 16: The field is a pushbutton.
Radio
readonlyRadio:number
Bit 15: The field is a set of radio buttons.
RadiosInUnison
readonlyRadiosInUnison:number
Bit 25: If set, exactly one radio button shall be selected.
ReadOnly
readonlyReadOnly:number
Bit 0: The user may not change the value of the field.
Required
readonlyRequired:number
Bit 1: The field must have a value at export time.
RichText
readonlyRichText:number
Bit 23: The value is a rich text string.
Sort
readonlySort:number
Bit 19: Options shall be sorted alphabetically.