Skip to content

zeropdf v1.3.0


zeropdf / FlowTextFieldOptions

Interface: FlowTextFieldOptions

Defined in: src/types.ts:1240

Options for placing a text 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.TextFieldOptions.actionssrc/types.ts:2559
appearance?stringCustom appearance stream content. When provided, this raw PDF content stream is used instead of the auto-generated appearance for the /N (normal) appearance state. Example: "1 0 0 rg 0 0 16 16 re f"TextFieldOptions.appearancesrc/types.ts:2554
borderWidth?numberAnnotation or field border width in PDF points.TextFieldOptions.borderWidthsrc/types.ts:2530
color?ColorInputColor used for drawing, text, or highlighting.TextFieldOptions.colorsrc/types.ts:2528
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).TextFieldOptions.encryptsrc/types.ts:2547
font?FontNameFont used to render text.TextFieldOptions.fontsrc/types.ts:2524
fontSize?numberFont size in PDF points.TextFieldOptions.fontSizesrc/types.ts:2526
heightnumberHeight in PDF points.TextFieldOptions.heightsrc/types.ts:2520
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
multiline?booleanWhether the text field accepts multiple lines.TextFieldOptions.multilinesrc/types.ts:2536
readOnly?booleanWhether the form field is read-only.TextFieldOptions.readOnlysrc/types.ts:2532
required?booleanWhether the form field is required.TextFieldOptions.requiredsrc/types.ts:2534
richValue?stringRich text value (XML string in XFA rich text format). When set, emitted as /RV in the field dictionary.TextFieldOptions.richValuesrc/types.ts:2541
structure?PdfStructureOptionsAdditional structure metadata for tagged PDF output.TextFieldOptions.structuresrc/types.ts:2563
tag?"Annot" | "Artifact"Structure tag used for tagged PDF output.TextFieldOptions.tagsrc/types.ts:2561
value?stringCurrent or default value for the option.TextFieldOptions.valuesrc/types.ts:2522
width?numberWidth override in PDF points.-src/types.ts:1247
x?numberHorizontal position override in PDF points.-src/types.ts:1243
y?numberVertical position override in PDF points.-src/types.ts:1245

Released under the ISC license.