THotPDF.GetLoadedPDFXVersion Method
Returns the PDF/X version string that a loaded document declares, such as PDF/X-1:2001, PDF/X-3:2002, PDF/X-4 or PDF/X-6
Declaration
function GetLoadedPDFXVersion: AnsiString;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
| This member does not expose explicit parameters | |
Return value
The declared GTS_PDFXVersion value, unchanged, or an empty string when the document carries no PDF/X identification
Usage notes
- The identification is looked up in this order: the XMP
pdfx:GTS_PDFXVersionproperty, which PDF/X-4 and later parts require, then the/GTS_PDFXVersionentry of the document information dictionary, where PDF/X-1a (ISO 15930-1) and PDF/X-3 (ISO 15930-3) files identify themselves, then legacy catalog keys written by some producers - A PDF/X-1a:2001 file declares
PDF/X-1:2001as its version and carries thePDF/X-1a:2001conformance level in a separate/GTS_PDFXConformanceentry, so the value returned for it isPDF/X-1:2001 - Both XMP serializations are accepted: a child element and RDF attribute shorthand
- The result reports what the file declares; it does not validate the file against the declared part
IsLoadedPDFXreturns true whenever this method returns a non-empty value