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:
0
PDF version of the active document (e.g. 1.7)
1
Author
2
Title
3
Subject
4
Keywords
5
Creator application
6
Producer
7
Creation date (PDF date string, e.g. D:20260101120000+00'00')
8
Modification date (same format as key 7)
100
Literal %PDF-X.Y header version as read from the source file. Empty for newly-created documents.
101
CRLF-delimited list of features detected in the loaded document that caused the effective version to exceed the header version.
102
CRLF-delimited list of features whose write entry points called EnsureMinVersion and auto-bumped the effective version.
103
Subset of key 101: only the features whose minimum required version is strictly greater than the header version (key 100).
200
PDF/UA-1 conformance mode flag. Returns 1 if SetPDFUAMode has been called on the active document; returns an empty string otherwise.
201
PDF/A conformance level. Returns 1 for PDF/A-1a, 2 for PDF/A-1b, or an empty string when PDF/A mode is off.
311
Version 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.
312
Feature name paired with key 311. Identifies the specific feature that triggered the version conflict (e.g. AES-256 encryption).
313
PDF 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.