THotPDF.PDFVTCompliance Property
Opts the document being written into PDF/VT-1 conformance, so that EndDoc writes the ISO 16612-2:2010 identification properties into the XMP packet and materialises the document part hierarchy the caller declared
Declaration
property PDFVTCompliance: AnsiString read FPDFVTCompliance
write FPDFVTCompliance;
Unit
HPDFDoc
Values
| Value | Meaning |
|---|---|
'' | Disabled, the default; nothing PDF/VT specific is written |
'VT-1' | PDF/VT-1 as ISO 16612-2:2010 §6.2.1 defines it, which is a PDF/X-4 file plus the Clause 6 requirements |
Any other non-empty value raises in EndDoc rather than producing a file that only looks conforming
Usage notes
- §6.2.1 defines a PDF/VT-1 file as one that conforms to PDF/X-4, and explicitly not to PDF/X-4p because X-4p permits the external ICC profile reference that would break single-file exchange, so PDFXCompliance has to be
'X-4'and theGTS_PDFXoutput intent has to be supplied through AddPDFXOutputIntent beforeEndDoc; the existing PDF/X gates then run as part of PDF/VT-1 conformance rather than beside it - PDF/VT-2 is not produced: §6.2.2 makes a PDF/VT-2 file a PDF/X-4p, PDF/X-5g or PDF/X-5pg file, and this library writes none of those single-file baselines. The PDF/VT-2s Annex A MIME streaming package is a separate matter: since v2.1204.20 the standalone
HPDFPDFVTStreamunit assembles and validates it throughTHPDFVTStreamWriterandHPDFValidatePDFVTStream, taking finished PDF bytes rather than writing a document. This property still accepts only'VT-1', because a singleTHotPDFdocument is not a chunk inside a stream and cannot declare a stream-wide reuse scope - §6.3 puts the identification properties in the metadata stream reached from the catalogue
/Metadatakey:EndDocaddsxmlns:pdfvtid="http://www.npes.org/pdfvt/ns/id/", writespdfvtid:GTS_PDFVTVersionas the literal tokenPDF/VT-1and writespdfvtid:GTS_PDFVTModDatefrom the same string asxmp:ModifyDate, so the two cannot drift apart - CustomXMP replaces the generated packet wholesale, so a custom packet has to carry both identification properties and the namespace itself;
EndDocraises when it does not, because the file would otherwise claim PDF/VT-1 with nothing to identify it - §6.5 makes the document part hierarchy required once the opt-in is set: SetPDFVTNodeNames has to name every level, at least one AddPDFVTNode call has to declare the root, and the leaf ranges given through SetPDFVTNodePages have to cover every page of the document exactly once, in the order a depth-first traversal of the hierarchy reaches them
EndDocwrites/DPartRootinto the catalogue, one indirect/Type /DPartdictionary per declared node, splitting each/DPartsarray so that every inner array but the last holds exactly 8192 entries as Table 4 requires, and a/DPartback reference on every page- Set the property before
EndDoc; the declared nodes are released by the destructor whenEndDocnever emitted them, and the document part metadata dictionaries anAddPDFVTNodecall took ownership of are freed with it - ValidatePDFVT is the read-side counterpart and accepts a file this property produced