Metoda THotPDF.ValidatePDFX6

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
OptionsSelects 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 selects px6Automatic, a 1,000,000-object budget, a 256-issue budget, and all validation groups

FieldPurpose
ProfileUses THPDFPDFX6Profile to select automatic, complete, external, or N-colourant validation
MaxObjectsBounds indirect and reachable-object traversal
MaxIssuesBounds retained diagnostics and emits a stable limit issue when exhausted
CheckOutputIntentsChecks effective Catalog 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

Related APIs