THotPDF.GenerateTextFieldAP Method

Builds the normal authored text appearance for a merged field/widget dictionary through an existing protected helper

Declaration

procedure GenerateTextFieldAP(Widget: THPDFDictionaryObject; const AText: AnsiString;
    const AutoAppearance: AnsiString= '');

Unit

HPDFDoc

Parameters

NamePurpose
WidgetMerged field and widget dictionary that receives the /AP normal appearance
ATextField value to draw; password fields show one asterisk per character
AutoAppearanceDefault-appearance string used for auto-sizing; empty falls back to the widget's own /DA value

Return value

This member does not return a value

This existing protected helper reads the merged field/widget's local numeric /Ff as an exact integer mask, preserving the known appearance flags when rounding the surrounding bits would change them

For example, $80003FFF retains Password and Multiline rather than becoming $80004000; the actual appearance still contains the password mask instead of the original text

A missing local /Ff retains the helper's zero-flag behavior; it does not introduce parent inheritance into this authored appearance path

The existing numeric fallback is retained when no usable integer source token is available

Public text-field creation calls this helper internally when automatic appearances are enabled; it remains protected and adds no public API

See AcroForm field flag precision for the separate loaded and authored lookup rules

Usage notes

Related APIs