THotPDF.ValidatePDFX6 Method
Runs bounded PDF/X-6, PDF/X-6p, or PDF/X-6n validation over the current producer or loaded object graph without mutating the document
Declaration
function ValidatePDFX6(
const Options: THPDFPDFX6ValidationOptions;
out Issues: THPDFPDFX6ValidationIssues): boolean; overload;
function ValidatePDFX6(
const Options: THPDFPDFX6ValidationOptions;
out Findings: THPDFComplianceFindings): boolean; overload;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
Options | Selects the profile, traversal budgets, and independently switchable validation groups |
Issues | Receives stable structured diagnostics in traversal order |
Return value
Returns True only when no x6isError diagnostic remains
Usage notes
THPDFPDFX6ValidationOptions.Default selects px6Automatic, a 1,000,000-object budget, a 256-issue budget, and all validation groups
| Field | Purpose |
|---|---|
Profile | Uses THPDFPDFX6Profile to select automatic, complete, external, or N-colourant validation |
MaxObjects | Bounds indirect and reachable-object traversal |
MaxIssues | Bounds retained diagnostics and emits a stable limit issue when exhausted |
CheckOutputIntents | Checks effective Catalog or page output intents and embedded or external profiles |
CheckPageBoxes | Checks inherited MediaBox and CropBox plus direct BleedBox, TrimBox, and ArtBox geometry |
CheckExchangeConstraints | Checks actions, forms, graphics state, XObjects, optional presentation data, and related exchange restrictions |
CheckEmbeddedFonts | Checks embedded font programs and Type 0 descendants |
CheckAnnotations | Checks annotation subtype, flags, and fixed normal appearances |
THPDFPDFX6IssueSeveritydistinguishes warnings from errors- Each
THPDFPDFX6ValidationIssuecarries a stable code, clause, object path, object number, zero-based page index, and message THPDFPDFX6ValidationIssuespreserves deterministic discovery order for repeatable CI output- The
THPDFComplianceFindingsoverload maps the same pass to the sharedPDF/X-6finding profile without extra graph traversal - Page-level output intents override Catalog scope as required by PDF 2.0
- Validation is non-mutating and shared resources are scanned once by object identity