The ISO 32000-1 corpus uses the PDF32000_2008.pdf preserved in the core repository: ISO 32000-1:2008, PDF 1.7. The additional adobe_supplement_iso32000.pdf describes Adobe ExtensionLevel 3; its separate coverage and source catalogue preserve the distinction between ISO definitions, Adobe extensions and Acrobat implementation notes. The retained Adobe PDF 1.7 reference, errata and redaction addendum have a separate archival catalogue, including the original portfolio and its embedded-document relationships. They support comparison and targeted audits; their preservation does not alter the active definition inventories or establish implementation of all their procedures. The current libraries use 64-bit PHP 8.3 or later: core 0.12.4, Reader 0.8.1, PDF-to-HTML 0.8.4, Images 0.2.3, Fonts 0.2.1, OpenType 0.4.1, Codecs 0.1.1 and HTML-to-PDF 0.4.0. Exact published versions and commits are pinned in the source manifest. OpenType and Codecs have no PDF core dependency. The PHP runtime version and PDF format version are independent. The PDF 2.0 guide tracks ISO 32000-2:2020 EC3 separately from the ISO1 counts below. The companion-specifications guide describes ISO/TS 32001–32005, PDF Declarations, WTPDF and Application Notes 001–003. The eleven supplied originals retain their names, bytes, physical page references and fingerprints in the core's bundle catalogue; they are excluded from Composer archives. Their provenance is the PDF Association. Neither a definition inventory nor a successful partial WTPDF audit establishes complete PDF 2.0, accessibility or PDF/UA conformance.

The ISO 32000-2 catalogue inventories 440 tables, including 306 dictionary models and 1,711 entries: 1,704 fixed and seven variable. Its source references, continuation pages and EC3 corrections are tracked separately from the ISO 32000-1 corpus described below.

The source contains 756 PDF pages, 823 outline entries, 370 main numbered tables and 22 annex tables. The catalogue inventories all 392 tables and all 73 content stream operator tokens, including the obsolete F and inline image delimiters BI, ID, and EI.

The 263 tables describing dictionary entries, parameters, or attribute entries produce 263 concrete dictionary classes, 263 immutable table definition classes, 1,399 concrete fixed entry classes and six concrete variable entry classes. Table identifiers remain in class names to distinguish similarly named dictionaries and to make each source definition traceable. PDF names are case sensitive; PHP class names are not. For conflicting names such as /OP and /op, the generated class name includes the hexadecimal spelling of its PDF name.

Each entry accepts PDF objects, with a PHP union matching the source's object types. References remain explicit objects. An indirect reference is checked against its target type. Stream values require an IndirectReference; callers never pass a direct stream as a dictionary value. Known fixed Type names are validated. Rectangles require four direct numbers. Cross-reference stream entries and their Index/W array elements must remain direct.

Each definition is an object composed of SourceReference, Requirement, ObjectTypeConstraint, and EntryDefinition objects. TableDefinition composes common dictionary tables explicitly. Catalogue is an immutable collection constructed by the caller. There is no singleton, shared cache, global service registry, or runtime JSON lookup. The JSON files are source inventories used by the reproducible build tools.

Dictionary classes allow incremental construction through immutable with() operations. Serializing them checks unconditional required entries. Conditional requirements, inherited entries, numeric limits, enumerations other than fixed Type names, relationships between dictionaries, and algorithm-specific rules are preserved in the source description but are not all automatically checked. Specialized document, page, font, content stream and function objects provide additional behavior and constraints.

This is an inventory and a low-level object construction model. It is not a claim that every algorithm or every valid document allowed by the 756-page standard has an implemented, independently verified semantic model. Native signing, tagging, compression, colour/shading and linearization now have executable models and independent validations. Remaining variants, constraints and external processors are tracked in the mechanism coverage guide and its source inventory. Named dictionary classes alone do not implement algorithms. Rendering, external image/font conversion, script execution and multimedia playback retain separate responsibilities.

The additional historical AES-256 revision 5 backend implements the algorithms of the retained Adobe supplement with explicit credentials, permissions, SASLprep Unicode 3.2 and writer integration. This is an opt-in legacy protocol. The ISO R=2/3/4 and public-key s3/s4/s5 handlers also have explicit writer operations. AES-CBC does not authenticate file contents.

The supplement also has separately validated historical R=2–R=4 key derivation, an ordered public-key recipient digest, 3D unit mapping and barcode data preparation/module-width calculation. Their APIs state their exact inputs and limits. Native CMS backends and public-key operations are composed explicitly; media rendering and barcode symbology encoding still require external processors. See the supplement guide and its versioned coverage inventory for each algorithm's status.

Implemented mechanisms beyond the syntax model

The core implements the PDF objects and mechanisms described by the Adobe/ISO reference. External TrueType, JPEG and PNG parsing is supplied by optional packages; reading existing PDFs is also a separate package. Modules depend on the core, which has no production dependency on them. See the package boundaries and installation guide.

Mechanism Executable behavior Explicit limits
Source dictionary rules Immutable source-linked intrinsic relations across PDF 1.7/2.0 tables, executed by schema validation/serialization; reviewed EC3 source bindings and corrected appearance placement. Other contextual/resource rules and EC3 scopes awaiting execution remain explicit; see source audits.
Applied redaction Native conservative deletion from normalized PDF graphs; affected shared resources removed across uses, ancillary channels dropped and fresh output without history. Unsupported/opaque content rejected; trusted geometry and resource sanitization are explicit. Excess deletion is permitted; see tutorial 36.
PDF fonts — core Explicit font programs and metrics, simple and composite fonts, encodings, horizontal/vertical CID widths, CMaps, UseCMap and Unicode mappings. The core receives normalized programs and values; external font parsing, subsetting and shaping need their own processors.
Independent OpenType model Explicit GSUB/GPOS/GDEF, axes/metrics, unhinted TrueType/CFF/CFF2 geometry, Unicode cmap formats, TTC/OTC face reading/serialization and feature ranges. 27 implemented table scopes, four partial, 19 uninterpreted; no TrueType VM, rasterizer, automatic Unicode shaping, WOFF or variable static-instance writer. Geometry is distinct from PDF embedding.
Font conversion — pdf-fonts Static TrueType and CFF1 embedding, explicit GSUB/GPOS stages, kerning/ligatures/marks, Unicode aliases and positioned PDF text; selected CFF collection faces. Complete programs, no subsetting or variable/CFF2 embedding. Itemization, bidi and vertical composition remain application work. CFF container interoperability is documented; original embedding flags are checked by OS/2 version.
PDF images — core Explicit dimensions, sample layouts, colour spaces, Decode, image stencils, colour-key/explicit/soft masks and declarations of encoded image data. Encoded data and its colour/alpha semantics are caller-declared. External codecs and file inspection belong to optional converters.
JPEG conversion — pdf-images Baseline/progressive eight-bit Huffman marker/frame/table validation, gray/RGB/Adobe CMYK/YCCK, exact DCT and Gray/RGB/CMYK ICC retention with explicit PDF colour/Decode parameters. Import preserves encoded bytes and does not decode entropy or encode JPEG. Ambiguous colour semantics and unsupported coding processes fail explicitly. EXIF orientation is not applied.
PNG conversion — pdf-images All legal static depths/colour types, Adam7, five filters, full-precision tRNS, exact colour/alpha, ICC retention, gAMA/cHRM calibration and exact sRGB transfer/intent. APNG and HDR metadata rejected. Untagged samples stay device-dependent; incomplete metadata follows an explicit defaults policy. Profile framing checks do not evaluate a full ICC colour engine.
Incremental revisions Exact frozen FileRevision snapshots and timeline, additions/replacements, linked free lists, release/reuse, retired generations and aliases, offsets and Prev, ordinary/stream/hybrid xrefs, encrypted variants and updates after initial linearization. Generated revisions only. Replacing a live value retains its object family and dictionary Type; a new identity reusing a free number may have a different type. Old bytes remain, so updates cannot erase confidential content.
Navigation Page labels, explicit and named destinations, viewport calculations, article rings and page drawing order, transitions and presentation sequences. Native graph and arithmetic are checked against the effective catalog; a viewer renders and animates their presentation.
Files and collections Supplied embedded bytes, Size/MD5 metadata, Mac information, EF/RF/CI, attachment name trees and typed collection schemas/items/sorts; external-stream declarations. No implicit filesystem/URL loading, platform conversion or collection UI execution.
Signature field policies Written seeds/locks, verified output, native provenance and complete frozen delta. Core 0.11: plain/rich filling, exclusively owned indirect values, regenerated appearances, limited historical templates, P3 markup and authenticated encrypted UR3 with per-update authority/saving; see protected revisions. Arbitrary new resources, templates with annotations/fields, external import and legacy UR handlers remain excluded. Signing and DSS/timestamp maintenance retain separate proofs; PKI/revocation remain explicit.
PDF 2.0 metadata and associations Escaped native XMP, declarations with explicit scope, named marked-content resource validation, associated-file discovery, flat DParts with explicit parents, UTF-8 DPM names and XMP on DPartRoot and encrypted payload wrappers. Opaque caller XML/content needs separate validation. An author assertion does not prove conformance; an outer wrapper does not decrypt its payload.
Qualified structure and WTPDF Namespace objects, qualified role maps, TS 32005 inclusion rules and bounded mechanical audit findings for structure, metadata, annotations and actual typed text use. Human reading order, meaningful descriptions, faithful Unicode semantics and external font-program evidence remain pending; no automatic certification.
Modern PDF security R=6 AES-CBC, R=7 AES-GCM, SHA-3/SHAKE, supported modern curves/EdDSA, PDF MAC over actual initial/incremental/linearized bytes and signature-attached MAC. Explicit algorithm/provider/extension selection. AES-CBC alone is unauthenticated; signature mathematics does not establish PKI trust.
External PDF reading — pdf-reader PDF 1.0–2.0 syntax, xref/history/object streams, explicit Standard R=2–7/PubSec authentication and source MAC checks, cumulative lossless/CCITT filters, native/PHP DCT/JPX/JBIG2 planes, explicit external data and graph import/remapping. No page renderer, text interpretation, repair, automatic merge or signature trust. Image profiles and limits are explicit. Imported source graphs do not supply native incremental/signature authority; applications enforce permissions.

The initial writer emits free records for every unused object number below Size. Incremental sections emit changed records and newly introduced free holes, keeping the previous free-list chain. CrossReferenceLimits caps cumulative Size at 100,000 entries by default, before allocating gap records; applications can supply an explicit capacity to a writer. New objects have generation zero, while a live replacement retains its existing generation. Release increments the free generation, reuse uses that stored generation, and generation 65535 is permanent. A number from the free list cannot create a new ObjStm container or compressed member.

The tutorials for embedded fonts, image files and incremental updates explain their object graphs and include executable documents. None of these mechanisms adds an application-global registry or automatic layout engine.

Rebuilding the source inventory

Use Python with pypdf and pdfplumber installed:

python tools/extract_spec.py
python tools/generate_specification.py
python tools/generate_specification.py --check

extract_spec.py verifies that all main table identifiers from 1 to 370 are present, extracts ruled table cells, checks the complete 73-token operator list, and records unresolved extraction problems in extraction-issues.json. The checked-in inventory has zero unresolved extraction problems. It records the SHA-256 fingerprint of the source PDF and physical PDF page numbers.

generate_specification.py emits named classes and immutable definition objects. Its --check mode compares the generated files without modifying them. Only stale PHP files bearing this generator's marker in its two generated directories may be removed during regeneration. The Python tools are development tools; the PHP library has no Python runtime dependency.

The generated source and its inventory must be reviewed together. Extraction repairs are narrow and documented in the tool: two wrapped key names and two OPI keys that overflow their printed table cells. Variable names remain variable; descriptive phrases such as “Other keys” are never emitted as fixed PDF keys.

corrections.json records explicit implementation decisions where the source wording is inconsistent. In Table 15 the ISO 2008 qualifier for /Prev says it shall be indirect, whereas Adobe PDF Reference 1.7, Table 3.13 requires a direct integer. This implementation keeps /Prev direct so that the previous cross-reference section can be located before indirect objects are resolved. The original description and qualifier are retained, and an immutable ImplementationCorrection object exposes the rationale and evidence. This is a documented implementation decision, not a claim of an official ISO erratum. Negative qualifiers such as “shall not be an indirect reference” are interpreted as direct-object constraints without changing their source wording.

Extending semantic coverage

Add a specialized immutable object for the normative concept, its exact source clause, and the meaningful constraints on its values and relationships. Compose existing entry definitions rather than maintaining a second catalogue of names. Keep parsers, encoders, compression, encryption, signatures, document writing, and rendering separate from the definition objects, with explicit dependencies. External-format parsing belongs in optional modules; normalized PDF values and mechanisms remain in the core. Use independent readers and validators to test emitted bytes, alongside focused unit tests for invalid cases. An entry's implementation status should distinguish its object model, its serialization, its constraints and its associated algorithm.

Guide source at the documented commit ↗