SetNeedAppearances

Form fields

Description

Sets the value of the document's "NeedAppearances" key. Setting this to 1 (True) will instruct the PDF viewer to create the appearances for the form fields when the document is loaded. The document must have at least one form field for this function to have any effect.

Syntax

Delphi

function TPDFlib.SetNeedAppearances(NewValue: Integer): Integer;

ActiveX

Function PDFlib::SetNeedAppearances(NewValue As Long) As Long

DLL

int DLSetNeedAppearances(int InstanceID, int NewValue);

Parameters

NewValue0 = Set NeedAppearances to False 1 = Set NeedAppearances to True

Return values

0The document does not have any form fields
1The NeedAppearances flag was set successfully