GetSigFlags

Security and signatures

Description

Returns the raw /SigFlags value from the document's AcroForm dictionary (ISO 32000-1 Table 218). Bit 1 (value 1) is SignaturesExist, meaning the document contains at least one signature field; bit 2 (value 2) is AppendOnly, meaning the document is certified and viewers should reject any edit other than an incremental signature append

Syntax

Delphi

Function TPDFlib.GetSigFlags: Integer;

Return values

>= 0The raw /SigFlags integer; test the individual bits to decode the flag combination
0The document has no AcroForm or no /SigFlags entry, or no document is loaded

Remarks

Use SetSigFlags to write the value back; setting bit 2 raises the PDF version to 1.5, since AppendOnly is a PDF 1.5 feature. The function takes no parameters

See also

SetSigFlags, GetSignatureFieldCount, GetSignatureFieldInfo