Skip to main content

Interface: FlowTextFieldOptions

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

Extends

Properties

PropertyTypeDescriptionInherited from
actions?FieldActionsJavaScript actions attached to this field's /AA dictionary. Each action value is raw PDF JavaScript source code.TextFieldOptions.actions
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.appearance
borderWidth?numberAnnotation or field border width in PDF points.TextFieldOptions.borderWidth
color?ColorInputColor used for drawing, text, or highlighting.TextFieldOptions.color
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.TextFieldOptions.description
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.encrypt
font?FontNameFont used to render text.TextFieldOptions.font
fontSize?numberFont size in PDF points.TextFieldOptions.fontSize
heightnumberHeight in PDF points.TextFieldOptions.height
margin?FlowMarginShorthandCSS-like margin shorthand in PDF points.FlowBlockSpacingOptions.margin
marginBottom?numberBottom margin in PDF points.FlowBlockSpacingOptions.marginBottom
marginLeft?numberLeft margin in PDF points.FlowBlockSpacingOptions.marginLeft
marginRight?numberRight margin in PDF points.FlowBlockSpacingOptions.marginRight
marginTop?numberTop margin in PDF points.FlowBlockSpacingOptions.marginTop
multiline?booleanWhether the text field accepts multiple lines.TextFieldOptions.multiline
readOnly?booleanWhether the form field is read-only.TextFieldOptions.readOnly
required?booleanWhether the form field is required.TextFieldOptions.required
richValue?stringRich text value (XML string in XFA rich text format). When set, emitted as /RV in the field dictionary.TextFieldOptions.richValue
structure?PdfStructureOptionsAdditional structure metadata for tagged PDF output.TextFieldOptions.structure
tag?"Annot" | "Artifact"Structure tag used for tagged PDF output.TextFieldOptions.tag
value?stringCurrent or default value for the option.TextFieldOptions.value
width?numberWidth override in PDF points.-
x?numberHorizontal position override in PDF points.-
y?numberVertical position override in PDF points.-