THotPDF.AutoFormAppearances Property
Controls whether form fields created with AddTextField, AddCheckBox, AddRadioButton, AddPushButton, AddComboBox and AddListBox receive appearance streams. The default generates them: every new field carries its own appearance in Helvetica or ZapfDingbats, whilst the AcroForm still sets /NeedAppearances true, so a viewer that builds appearances from each field's /DA string keeps doing that and a viewer or printer that ignores the flag draws the embedded stream instead of an empty field
Writing the property decides who owns the appearance. Setting it to true also clears /NeedAppearances, which makes the embedded streams authoritative and suits viewers and printers that do not build appearances. Setting it to false writes fields with no appearance at all and leaves the rendering to the viewer, the shape of older releases. Setting PDFACompliance takes the authoritative shape, because PDF/A does not allow /NeedAppearances true. PDF 2.0 output (Version = pdf20) always furnishes new fields with appearances and clears the flag, because PDF 2.0 requires one on every widget and deprecates /NeedAppearances
XFA flattening is unaffected by the default and keeps the appearances its own engine produces, so a document converted from XFA is byte-for-byte what it was before
In both modes the AcroForm default resources (/DR) define the Helvetica font that the /DA strings name. Generated appearances of password fields show asterisks in place of the value
For ordinary ASCII multiline fields created with AddTextField, generated appearances preserve CR, LF and CRLF paragraph boundaries and intervening blank paragraphs, whilst retaining the existing soft wrapping
The appearance layout leaves the stored field value and single-line layout unchanged, and setting this property to false retains the existing viewer-generated appearance behaviour
Generated AddListBox appearances show the option rows in stored order, clip rows to the widget viewport, and highlight the first matching nonempty scalar selection; the standard Helvetica renderer uses WinAnsiEncoding and one question-mark fallback per unrepresentable Unicode scalar
Stored choice text preserves Unicode and control scalars independently of the standard-font appearance; automatic Type0 font fallback and complex shaping are outside this finite appearance profile
With ffSort, authored choice fields store options in stable Windows invariant linguistic order, and generated listbox rows follow that saved order; without the flag, caller order is retained
Sorting changes neither the original text nor exact selected-value matching, and the Combo selected-caption renderer and existing appearance-generation gates retain their behaviour; see AddListBox for the NLS comparison policy
Related API reference pages in the contents tree set out the call signatures, examples and adjacent workflow details