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
| Name | Purpose |
|---|---|
Options | Sets the traversal budgets and independently switchable validation groups |
Issues | Receives stable structured diagnostics in traversal order |
Findings | Receives 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
| Field | Purpose |
|---|---|
MaxObjects | Bounds reachable-object traversal |
MaxIssues | Bounds retained diagnostics and emits a stable limit issue when exhausted |
MaxDecodedBytes | Bounds cumulative decoded content-stream bytes |
MaxContentTokens | Bounds cumulative parsed operators and operands |
CheckCatalogEntries | Checks the permitted catalog optional entries |
CheckInformationDictionary | Checks the permitted information dictionary entries |
CheckMetadataCorrespondence | Checks that an XMP stream carries the properties its information entries map to |
CheckPageGeometry | Checks the direct [0 0 w h] media box |
CheckStripEncoding | Checks strip entries, colour space, bit depth, filter and cross-strip consistency |
CheckContentOperators | Checks the q, Q, cm and Do operator set and resolves each Do |
THPDFPDFR1IssueSeveritydistinguishes warnings from errors- Each
THPDFPDFR1ValidationIssuecarries a stable code, the ISO 23504-1 clause, an object path, an object number, a zero-based page index and a message THPDFPDFR1ValidationIssuespreserves deterministic discovery order for repeatable CI output- The
THPDFComplianceFindingsoverload maps the same pass to the sharedPDF/R-1profile without extra graph traversal - Validation is non-mutating and fails closed when the object, issue, decoded-byte or token limits are exhausted
- An encrypted document is accepted with a warning, and the
%PDF-raster-1.0comment marker is not checked because it sits in the raw byte image