THotPDF.FormAppearancesWanted Method
Reports whether newly created form fields receive appearance streams under the current output settings
Declaration
function FormAppearancesWanted: boolean;
Unit
HPDFDoc
Parameters
This member takes no parameters
Return value
True when AutoFormAppearances is enabled or the output version is PDF 2.0, otherwise False
Usage notes
- PDF 2.0 requires an appearance stream for every widget (ISO 32000-2 Table 166) and deprecates /NeedAppearances, so the version alone turns appearance generation on
- It answers whether new fields get appearance streams, not who owns them: with the default the AcroForm still sets /NeedAppearances true, so a viewer that honours the flag keeps building appearances from /DA
- The AcroForm writer clears /NeedAppearances only when the caller wrote AutoFormAppearances, or when the output is PDF 2.0 or a PDF/A part that forbids the flag
- Use it to mirror HotPDF's behavior when building fields through the low-level loaded-document helpers