THotPDF.ValidatePDFX6 Method

Enterprise edition: this feature ships with HotPDF Enterprise. Add HPDFEnterprise to a uses clause (C++Builder: #pragma link "HPDFEnterprise"); other editions retain the declaration and raise EHPDFEnterpriseRequired

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

NamePurpose
OptionsPicks the profile, traversal budgets and independently switchable validation groups
IssuesReceives stable structured diagnostics in traversal order

Return value

Returns True only when no x6isError diagnostic remains

Usage notes

THPDFPDFX6ValidationOptions.Default picks 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

FieldPurpose
ProfileUses THPDFPDFX6Profile to select automatic, complete, external or N-colourant validation
RuleSetPicks ISO 15930-9:2020 as published or with resolved errata through 2025-11-11
MaxObjectsBounds indirect and reachable-object traversal
MaxIssuesBounds retained diagnostics and emits a stable limit issue when exhausted
MaxDecodedBytesBounds cumulative decoded ICC profile and content-stream bytes plus bounded JPX header input
MaxContentTokensBounds cumulative parsed operators, operands and nested array work items before unbounded arrays can form
CheckOutputIntentsChecks effective catalogue or page output intents and embedded or external profiles
CheckPageBoxesChecks inherited MediaBox and CropBox plus direct BleedBox, TrimBox and ArtBox geometry
CheckExchangeConstraintsChecks actions, forms, graphics state, XObjects, optional presentation data and related exchange restrictions
CheckEmbeddedFontsChecks embedded font programs and Type 0 descendants
CheckAnnotationsChecks annotation subtype, flags and fixed normal appearances
CheckPaintedColourSpacesInterprets actual path, text, image, shading, pattern, glyph, soft-mask and appearance paints and validates their effective colour spaces
CheckOverprintChecks stroking and nonstroking overprint state, mode 1 applicability and combined-paint interactions
CheckTransparencyChecks alpha, blend modes, transparency groups, soft masks and combined fill-and-stroke compositing

Related APIs