THotPDF.SetLoadedCatalogVersion Method
Overwrites the Version entry in the Catalog dictionary of the loaded PDF document to specify the PDF version number declared by the document
Declaration
procedure SetLoadedCatalogVersion(const AVersion: AnsiString);
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
AVersion | Version string to write to the catalog's Version entry, e.g. 1.7 |
Return value
This member returns no value
Usage notes
- From PDF 1.4 onwards the Version entry in the Catalog overrides the version declared in the file header, so make sure the actual content is compatible with the declared version
- Downgrading the version number may cause higher-version-specific features (such as incremental updates, object streams, and cross-reference streams) to be unrecognised by older readers
- Changes will only be persistent after calling the save method