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 条目的版本字符串,如 1.4、1.5、1.7、2.0 等 |
Usage notes
- Catalog 中的 Version 条目在 PDF 1.4 及更高版本中会覆盖文件头中的版本声明,须确保实际内容与声明版本兼容
- 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