SetPDFVTMode
Compliance, variable data printing
Description
Selects a PDF/VT conformance target on top of its PDF/X base and writes the required identification metadata
Syntax
Delphi
Function SetPDFVTMode(NewMode: Integer): Integer;Parameters
| NewMode | 1 selects PDF/VT-3 over PDF/X-6 complete exchange, 2 selects PDF/VT-3 over PDF/X-6p process-colour partial exchange, 3 selects PDF/VT-3 over PDF/X-6n n-colourant partial exchange, 4 selects PDF/VT-1 over PDF/X-4, 5 selects PDF/VT-2 over PDF/X-5pg and 6 selects PDF/VT-2s over PDF/X-5pg (ISO 16612-2:2010) |
|---|
Return values
1 when the mode was selected, or 0 for an invalid mode, a loaded document or a conflicting save configuration
Remarks
Modes 1 to 3 select PDF 2.0 with the matching PDF/X-6 family base, then write GTS_PDFVTVersion as PDF/VT-3 and rev as 2020; modes 4 to 6 select PDF 1.6 with the PDF/X-4 or PDF/X-5pg base of their ISO 16612-2:2010 edition and write rev as 2010; whichever mode is used, a GTS_PDFVTModDate is kept synchronised with xmp:ModifyDate at save time
A complete document part hierarchy must be in place before SaveToFile, SaveToString or SaveToStream; with an incomplete hierarchy the save is rejected with LastErrorCode 525
Use BeginDocumentPartHierarchy and the document part APIs to build a uniform leaf hierarchy whose page ranges cover every page exactly once, in page order
Modes 2, 3, 5 and 6 additionally need an external output-profile reference set up through SetOutputIntentProfileReference with one or more retrievable locations
Call CheckFileCompliance with ComplianceTest = 4 to audit the PDF/X base, PDF/VT identification, document part graph, DPM values, record level and page coverage in a single shared parse
See also
SetPDFXMode, BeginDocumentPartHierarchy, SetDocumentPartPageRange, ValidateDocumentPartHierarchy, SetOutputIntentProfileReference, CheckFileCompliance