sempdf
sempdf v1.9.1Interfaces

Interface: FlowTextFieldOptions

sempdf v1.9.1


sempdf / FlowTextFieldOptions

Defined in: src/types.ts:1511

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:3210
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:3205
borderWidth?numberAnnotation or field border width in PDF points.TextFieldOptions.borderWidthsrc/types.ts:3181
color?ColorInputColor used for drawing, text, or highlighting.TextFieldOptions.colorsrc/types.ts:3179
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.descriptionsrc/types.ts:3163
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:3198
font?FontNameFont used to render text.TextFieldOptions.fontsrc/types.ts:3175
fontSize?numberFont size in PDF points.TextFieldOptions.fontSizesrc/types.ts:3177
heightnumberHeight in PDF points.TextFieldOptions.heightsrc/types.ts:3171
margin?FlowMarginShorthandCSS-like margin shorthand in PDF points.FlowBlockSpacingOptions.marginsrc/types.ts:1271
marginBottom?numberBottom margin in PDF points.FlowBlockSpacingOptions.marginBottomsrc/types.ts:1277
marginLeft?numberLeft margin in PDF points.FlowBlockSpacingOptions.marginLeftsrc/types.ts:1279
marginRight?numberRight margin in PDF points.FlowBlockSpacingOptions.marginRightsrc/types.ts:1275
marginTop?numberTop margin in PDF points.FlowBlockSpacingOptions.marginTopsrc/types.ts:1273
multiline?booleanWhether the text field accepts multiple lines.TextFieldOptions.multilinesrc/types.ts:3187
readOnly?booleanWhether the form field is read-only.TextFieldOptions.readOnlysrc/types.ts:3183
required?booleanWhether the form field is required.TextFieldOptions.requiredsrc/types.ts:3185
richValue?stringRich text value (XML string in XFA rich text format). When set, emitted as /RV in the field dictionary.TextFieldOptions.richValuesrc/types.ts:3192
structure?PdfStructureOptionsAdditional structure metadata for tagged PDF output.TextFieldOptions.structuresrc/types.ts:3214
tag?AnnotTagOrArtifactStructure tag used for tagged PDF output.TextFieldOptions.tagsrc/types.ts:3212
value?stringCurrent or default value for the option.TextFieldOptions.valuesrc/types.ts:3173
width?numberWidth override in PDF points.-src/types.ts:1518
x?numberHorizontal position override in PDF points.-src/types.ts:1514
y?numberVertical position override in PDF points.-src/types.ts:1516

On this page