GetInformation

Document properties

Description

Returns a property of the selected document as a string. Diagnostic keys (100–103, 200–201, 311–313) are read-only status values set internally by the library; they are not modifiable via SetInformation.

Syntax

Delphi

function TPDFlib.GetInformation(Key: Integer): WideString;

ActiveX

Function PDFlib::GetInformation(Key As Long) As String

DLL

wchar_t * DLGetInformation(int InstanceID, int Key);

Parameters

Key

The property to retrieve. Keys are grouped by category:

0PDF version of the active document (e.g. 1.7)
1Author
2Title
3Subject
4Keywords
5Creator application
6Producer
7Creation date (PDF date string, e.g. D:20260101120000+00'00')
8Modification date (same format as key 7)
100Literal %PDF-X.Y header version as read from the source file. Empty for newly-created documents.
101CRLF-delimited list of features detected in the loaded document that caused the effective version to exceed the header version.
102CRLF-delimited list of features whose write entry points called EnsureMinVersion and auto-bumped the effective version.
103Subset of key 101: only the features whose minimum required version is strictly greater than the header version (key 100).
200PDF/UA-1 conformance mode flag. Returns 1 if SetPDFUAMode has been called on the active document; returns an empty string otherwise.
201PDF/A conformance level. Returns 1 for PDF/A-1a, 2 for PDF/A-1b, or an empty string when PDF/A mode is off.
311Version string from the most recent version-lock conflict. Non-empty after Encrypt, AddSWFAnnotationFromFile, SaveToFile, or SaveToString when the document version was locked below the minimum required for the chosen feature, and the operation returned 0 with LastErrorCode 602.
312Feature name paired with key 311. Identifies the specific feature that triggered the version conflict (e.g. AES-256 encryption).
313PDF version string at which the save target is currently locked (e.g. 1.4). Non-empty when SetInformation(0, …) has fixed the output version. Empty for freely-versioning documents.