PDF/R-1 Conformance Validation

PDF/R-1 (ISO 23504-1:2020) is the raster-image subset of ISO 32000 used to store, transport and exchange scanned documents. A conforming file holds one or more image strips per page and little else: a single content stream places each strip with Do, every page writes its own media box, and the catalogue and information dictionary stay inside a fixed set of entries

THotPDF.ValidatePDFR1 reads a loaded document or the document being built and reports every departure as a structured diagnostic. Validation is non-mutating and never writes the document

Container rules

Strip encoding

Bit depth, colour space and compression are checked together, because PDF/R-1 ties them to each other

Document rules

Documented limits

Two parts of the standard sit outside the readable object graph and are therefore reported rather than claimed as verified

Bounded execution

Object visits, retained issues, decoded bytes and content tokens are all capped by THPDFPDFR1ValidationOptions, and reaching a cap emits a stable limit diagnostic instead of growing without bound

Structured diagnostics

ValidatePDFR1 returns THPDFPDFR1ValidationIssues, an array of THPDFPDFR1ValidationIssue records whose THPDFPDFR1IssueSeverity identifies warnings and errors

Each issue carries a stable code, the ISO 23504-1 clause, an object path, an object number, a zero-based page index and a message

The THPDFComplianceFindings overload maps the same pass to the shared PDF/R-1 finding profile, so one report can mix profiles and serialise to JSON

Related APIs