SetPDFVTMode

Compliance, variable data printing

Description

Selects a PDF/VT conformance target over its PDF/X base and writes the required identification metadata

Syntax

Delphi

Function SetPDFVTMode(NewMode: Integer): Integer;

Parameters

NewMode1 selects PDF/VT-3 over PDF/X-6 complete exchange, 2 selects PDF/VT-3 over PDF/X-6p process-color partial exchange, 3 selects PDF/VT-3 over PDF/X-6n n-colorant 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 and the corresponding 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; every mode keeps a GTS_PDFVTModDate synchronized with xmp:ModifyDate at save time

A complete document part hierarchy is mandatory before SaveToFile, SaveToString or SaveToStream; an incomplete hierarchy rejects the save with LastErrorCode 525

Use BeginDocumentPartHierarchy and the document part APIs to create a uniform leaf hierarchy whose page ranges cover every page exactly once and in page order

Modes 2, 3, 5 and 6 also require an external output-profile reference configured through SetOutputIntentProfileReference and 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 one shared parse

See also

SetPDFXMode, BeginDocumentPartHierarchy, SetDocumentPartPageRange, ValidateDocumentPartHierarchy, SetOutputIntentProfileReference, CheckFileCompliance