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
| Name | Purpose |
|---|---|
Widget | Merged field and widget dictionary that receives the /AP normal appearance |
AText | Field value to draw; a password field shows one asterisk per character |
AutoAppearance | Default-appearance string used when auto-sizing; an empty value falls back to the widget's own /DA |
Usage
This member returns no 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 behaviour; 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
- A protected member of
THotPDF: only descendant classes may call it - The appearance honours the multiline and comb flags together with the field's
/MaxLen