Repository navigation
0.2.0 — Deriving HTML 1.2 object pipeline
This release completes the Deriving HTML from PDF 1.2 pipeline with explicit immutable source objects and processors scoped to one document. The retained reference is mapped to 69 clause decisions with linked implementation and test evidence.
- Validate forward/inverse structure associations, binary identifiers, table header relations, namespaces and navigation actions. Resolve final destinations after HTML attribute overrides and associated alternatives.
- Select ActualText and Alternative/Supplement replacements before interpreting discarded content, preserving original content when a policy blocks a replacement. Respect owner priority, list-label Placement and resolved MathML roles.
- Complete simple-font Unicode fallback with pinned Adobe glyph data and interpret verified inline-image/CCITT boundaries with dimensional fallbacks.
- Preserve complete graphic programs and export isolated selected figures with original resources, clipping, text advances, inherited fonts, page transparency and optional-content visibility. An explicit rasterizer object supplies image rendering; no engine is launched implicitly.
- Implement targeted ResetForm defaults and supported HTML SubmitForm selections with separate opt-in policies. Keep PDF ECMAScript disabled independently, scope runtime events/values to the derived document and preserve final field bindings.
- Put page-navigation IDs on actual content parents and retain form expansion/label identities. Require reader 0.2.3 and authenticate only its verified encryption signal.
New executable examples demonstrate figure export and safe field reset. English and French guides explain the model, policies, original reference, coverage, clause ledger, security and rendering integration.
Validation: 428 tests / 5,870 assertions, PHPStan, formatting and Composer checks; independent pypdf/HTML5 parsing, PNG/sample checks, libtiff fax payloads, Poppler pixel comparisons and Node form-runtime cases. Exact candidate CI on PHP 8.3–8.5: 6652b4b6dfee9dba689174e038f660e91858c573.
composer require "pdftoolkit/pdf-to-html:^0.2.0"Rasterization, cryptographic authentication, additional codecs and receiving-viewer permissions are explicit integration responsibilities. Supported derivation rules do not mean every external PDF is accepted, complete Acrobat scripting emulation or automatic accessibility certification.