THotPDF.ValidatePDFR1 Method

Runs bounded PDF/R-1 (ISO 23504-1:2020) structural validation over the current producer or loaded object graph without writing the document

Unit

HPDFDoc; the validator body is HPDFPreflightValidatePDFR1 in the core unit HPDFPDFR1Validation, and the explicit ValidatePDFR1 entry point is Enterprise-gated through HPDFRequireEnterprise

Syntax

function THotPDF.ValidatePDFR1(
  const Options: THPDFPDFR1ValidationOptions;
  out Issues: THPDFPDFR1ValidationIssues): boolean; overload;
function THotPDF.ValidatePDFR1(
  const Options: THPDFPDFR1ValidationOptions;
  out Findings: THPDFComplianceFindings): boolean; overload;

Parameters

NamePurpose
OptionsSets the traversal budgets and independently switchable validation groups
IssuesReceives stable structured diagnostics in traversal order
FindingsReceives the same pass mapped to the shared compliance finding schema

Return value

Returns True only when no prisError diagnostic remains

Usage notes

THPDFPDFR1ValidationOptions.Default enables every validation group, allows 1,000,000 object visits and 1,024 retained issues, and applies cumulative limits of 64 MiB decoded data and 4,000,000 content tokens

FieldPurpose
MaxObjectsBounds reachable-object traversal
MaxIssuesBounds retained diagnostics and emits a stable limit issue when exhausted
MaxDecodedBytesBounds cumulative decoded content-stream bytes
MaxContentTokensBounds cumulative parsed operators and operands
CheckCatalogEntriesChecks the permitted catalog optional entries
CheckInformationDictionaryChecks the permitted information dictionary entries
CheckMetadataCorrespondenceChecks that an XMP stream carries the properties its information entries map to
CheckPageGeometryChecks the direct [0 0 w h] media box
CheckStripEncodingChecks strip entries, colour space, bit depth, filter and cross-strip consistency
CheckContentOperatorsChecks the q, Q, cm and Do operator set and resolves each Do

Related APIs