THotPDF.FormAppearancesWanted Method
Tells you whether form fields created from now on will receive appearance streams given the current output settings
Declaration
function FormAppearancesWanted: boolean;
Unit
HPDFDoc
Parameters
This member takes no parameters
Return value
True where AutoFormAppearances is switched on or the output version is PDF 2.0; False in every other case
Usage notes
- PDF 2.0 insists on an appearance stream for every widget (ISO 32000-2 Table 166) and does away with /NeedAppearances, so the version on its own switches 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
- Call it when you are building fields through the low-level loaded-document helpers and want to mirror HotPDF's behaviour