GetPDFVersion
Document properties
Description
Returns the PDF version of the loaded document as a string such as '1.4', '1.7' or '2.0'. This is the effective version: when the document content requires a newer PDF version than the file header states, the detected requirement is reported so a freshly loaded document reflects the version its content actually needs
Syntax
Delphi
Function TPDFlib.GetPDFVersion: WideString;
Return values
| Version string | The effective PDF version of the loaded document, for example '1.7' |
|---|---|
| '' | An empty string, returned when no document is loaded |
Remarks
The reported value matches GetInformation(0). Use GetInformation(100) to read the literal %PDF-X.Y header value before any content-driven version bump. The function takes no parameters