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
Deklaration
function ValidatePDFX6(
const Options: THPDFPDFX6ValidationOptions;
out Issues: THPDFPDFX6ValidationIssues): boolean; overload;
function ValidatePDFX6(
const Options: THPDFPDFX6ValidationOptions;
out Findings: THPDFComplianceFindings): boolean; overload;
Unit
HPDFDoc
Parameter
| Name | Zweck |
|---|---|
Options | Selects the profile, traversal budgets, and independently switchable validation groups |
Issues | Receives stable structured diagnostics in traversal order |
Rückgabewert
Returns True only when no x6isError diagnostic remains
Verwendungshinweise
THPDFPDFX6ValidationOptions.Default selects px6Automatic, x6rsResolvedErrata2025, a 1,000,000-object budget, a 1,024-issue budget, 64 MiB of decoded data, 4,000,000 content tokens, and all validation groups
| Field | Purpose |
|---|---|
Profile | Uses THPDFPDFX6Profile to select automatic, complete, external, or N-colourant validation |
RuleSet | Selects ISO 15930-9:2020 as published or with resolved errata through 2025-11-11 |
MaxObjects | Bounds indirect and reachable-object traversal |
MaxIssues | Bounds retained diagnostics and emits a stable limit issue when exhausted |
MaxDecodedBytes | Bounds cumulative decoded ICC profile and content-stream bytes plus bounded JPX header input |
MaxContentTokens | Bounds cumulative parsed operators, operands and nested array work items before unbounded arrays can form |
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 |
CheckPaintedColourSpaces | Interprets actual path, text, image, shading, pattern, glyph, soft-mask, and appearance paints and validates their effective colour spaces |
CheckOverprint | Checks stroking and nonstroking overprint state, mode 1 applicability, and combined-paint interactions |
CheckTransparency | Checks alpha, blend modes, transparency groups, soft masks, and combined fill-and-stroke compositing |
THPDFPDFX6IssueSeveritydistinguishes warnings from errors- Each
THPDFPDFX6ValidationIssuecarries a stable code, clause, rule set, rule revision, 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
- Content, ICC, JPX header and Type 3 structure work are cached by object identity, while context-sensitive graphics state is evaluated independently for every invocation
- Validation is non-mutating and fails closed when object, issue, decoded-byte, token, recursion, or graphics-state-stack limits are exhausted