pdfGetNeedAppearance
Set/get the AcroForm /NeedAppearances flag — tells the PDF
BOOL32 __stdcall pdfGetNeedAppearance(PPDF IPDF);
BOOL32 __stdcall pdfSetNeedAppearance(PPDF IPDF, BOOL32 Value);
function pdfGetNeedAppearance(const IPDF: PPDF): LongBool; stdcall;
function pdfSetNeedAppearance(const IPDF: PPDF; Value: LongBool): LongBool; stdcall;
Purpose. Set/get the AcroForm /NeedAppearances flag — tells the PDF viewer to regenerate every field's visual appearance itself rather than trusting this SDK's own generated /AP streams.
Description. Real: FNeedAppearances is genuinely consulted at serialization time to decide whether to emit the /NeedAppearances true catalog entry; a source comment notes the getter and serializer were "unified" to both read the same field (implying a past inconsistency was fixed).
Return value. Getter: the current flag; False if IPDF invalid. Setter: True if IPDF valid.
C# (P/Invoke)
[return: MarshalAs(UnmanagedType.Bool)]
Getters
pdfGetNeedAppearance
The …A form takes UTF-8, …W
takes UTF-16; a bare name aliases the ANSI form.
Worked examples — complete programs in ten languages.