THotPDF.GetLoadedCatalogVersion Method
Reads the PDF version override value recorded in the catalogue dictionary of the loaded PDF document
Declaration
function GetLoadedCatalogVersion: AnsiString;
Unit
HPDFDoc
Return value
| Name | Purpose |
|---|---|
| This member takes no explicit parameters | |
Return value
Returns an AnsiString value
Usage notes
- Since PDF 1.4 the catalogue's Version key may override the version in the file header; the higher of the two becomes the effective version
- If this method returns an empty string, the actual version number must be read from the file header `%PDF-x.y`
- This method only reads static fields in the catalogue and does not parse the feature set of the entire document to infer the version