Skip to content

0.1.0 — Tagged PDF to semantic HTML

Choose a tag to compare

@roukmoute roukmoute released this 14 Oct 18:42
· 48 commits to main since this release

First public release of pdftoolkit/pdf-to-html, an optional PHP 8.3+ package following PDF Association Deriving HTML from PDF 1.2.

Semantic derivation

  • Immutable source objects and document-scoped processing, with explicit reading, interpretation, derivation and output ownership.
  • Logical structure, transitive namespace-aware role maps, attributes/classes, text alternatives, lists, tables, figures, links, MathML and interactive/non-interactive forms.
  • Associated-file Alternative/Supplement processing, safe HTML/CSS/URL validation, cumulative budgets, assets and diagnostics.
  • Explicit opt-in document/field/page JavaScript bridge, plus renderer and authenticated-source integration ports.
  • Bounded tagged-PDF adapter using the published PDF reader; original 74-page reference preserved unchanged under resources/reference-documents/ and excluded from Composer archives.
  • English/French guides, coverage table and executable PDF-to-HTML example.

Validation

192 tests and 592 assertions pass on PHP 8.3, 8.4 and 8.5. PHPStan level 8, PSR-12, Composer validation/platform checks and dependency audit pass. Independent pypdf and HTML5 parsing validate the real fixture and derived output; Node verifies the opt-in runtime.

This release derives semantic HTML from usable tagged input. It does not promise arbitrary PDF conversion, exact page-layout reconstruction, complete Acrobat JavaScript emulation or accessibility certification. Unsupported input mechanisms are documented and produce diagnostics or exceptions; rendering and cryptographic authentication require explicit application integrations.

composer require "pdftoolkit/pdf-to-html:^0.1.0"

Documentation · French tutorial · Coverage