Skip to main content

Module pdfa

Module pdfa 

Source
Expand description

PDF/A conformance validation (profiles A-1b and A-2b).

A rule engine over the parsed document: each check inspects one aspect of the file and yields zero or more Violations. This does not aim for veraPDF-level completeness — it covers the high-signal, machine-checkable clauses of ISO 19005-1 (PDF/A-1b) and 19005-2 (PDF/A-2b):

  • file structure: header version, no encryption, trailer /ID present
  • fonts: every used font embedded (except the standard 14 in no profile — PDF/A requires embedding even for those)
  • XMP metadata: present, with a pdfaid:part/conformance claim
  • output intent: a PDF/A output intent with an embedded ICC profile
  • forbidden features: JavaScript/actions, embedded files (A-1), transparency (A-1: soft masks / group /S /Transparency), LZW (A-1), encryption of any kind

Everything is best-effort and read-only over ParseLimits-bounded APIs; a check that cannot run (e.g. a malformed font dict) reports what it saw.

Structs§

ValidationReport
The outcome of a validation run.
Violation
One conformance violation.

Enums§

Profile
The validation profile.

Functions§

validate
Validate file against profile.