API referenceCore SDK

pdfGetNeedAppearance

Set/get the AcroForm /NeedAppearances flag — tells the PDF

C
BOOL32 __stdcall pdfGetNeedAppearance(PPDF IPDF);
BOOL32 __stdcall pdfSetNeedAppearance(PPDF IPDF, BOOL32 Value);
Delphi
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)

wrappers/dotnet/LumasPdf.cs
[return: MarshalAs(UnmanagedType.Bool)]
Area
Core SDK
Category

Getters

Exported names

pdfGetNeedAppearance

String variants

The …A form takes UTF-8, …W takes UTF-16; a bare name aliases the ANSI form.

See working code

Worked examples — complete programs in ten languages.