Criação e validação PDF/X-6
HotPDF supports complete, externally profiled, and N-colourant PDF/X-6 exchange workflows over PDF 2.0
Profiles
PDFXCompliance | THPDFPDFX6Profile | Output profile |
|---|---|---|
'X-6' | px6Complete | Embedded ICC profile through DestOutputProfile |
'X-6p' | px6External | External gray, RGB, or CMYK ICC profile through DestOutputProfileRef |
'X-6n' | px6NChannel | External N-colourant profile plus matching ColorantTable |
| Detected from the document | px6Automatic | Uses the producer setting or loaded XMP identification |
Complete profile example
PDF.Version := pdf20;
PDF.PDFXCompliance := 'X-6';
PDF.Title := 'Press-ready artwork';
PDF.Trapped := 'False';
PDF.BeginDoc;
PDF.CurrentPage.SetTrimBox(0, 0,
PDF.CurrentPage.Width, PDF.CurrentPage.Height);
PDF.AddPDFXOutputIntent('CGATS TR 001',
'Document printing condition', ICCStream, 4, 'DeviceCMYK');
PDF.EndDoc;
EndDoc runs fail-closed validation for all three PDF/X-6 profiles before serialization
Output-intent scope
AddPDFXOutputIntentadds one embedded Catalog-level profile for the complete profileAddPDFX6PageOutputIntentadds an embedded profile to one pageAddPDFX6ExternalOutputIntentadds an external profile reference at Catalog scope withPageIndex=-1or at page scope with a zero-based index- A page-level
OutputIntentsarray overrides the Catalog array for that page - Each effective scope must contain exactly one PDF/X intent
Page boxes
The validator resolves inherited MediaBox e CropBox, checks direct BleedBox, TrimBox, and ArtBox values, and requires exactly one finished-page box per page
- Every rectangle must contain four finite ordered coordinates
CropBox,BleedBox, and the finished-page box must stay insideMediaBoxTrimBoxeArtBoxare mutually exclusive
Exchange constraints
One bounded graph traversal checks the profile identification and exchange structures while deduplicating shared resources by object identity
- PDF 2.0 header, XMP profile marker, dates, title, trapped state, trailer ID, and absence of encryption
- Action types, action chains, destination arrays, AcroForm state, and field additional actions
- Printable visible annotations with fixed normal appearances and no PrinterMark or TrapNet subtype
- Embedded font programs, Type 0 descendants, graphics-state value types and ranges, and resource XObjects
- Disallowed page production-step data and alternate-presentation or viewer-preference Catalog data
Structured diagnostics
ValidatePDFX6 devolve THPDFPDFX6ValidationIssues, an array of THPDFPDFX6ValidationIssue records whose THPDFPDFX6IssueSeverity identifies warnings and errors
Each issue includes a stable code, standard clause, object path, object number, zero-based page index, and message
THPDFPDFX6ValidationOptions independently bounds objects and issues and can isolate output-intent, page-box, exchange, font, or annotation checks