Optional module · pdftoolkit/html-to-pdf 0.4.0
Reviewed on 2026-11-09. This independent MIT implementation uses primary HTML/CSS specifications to define its supported profile. Its examples use original illustrations and separately licensed fonts.
| Reference | Use and scope |
|---|---|
| WHATWG HTML parsing | HTML syntax and parsing; implemented through the explicit Masterminds HTML5 dependency. |
| CSS 2 | Core boxes, text and table terminology; only the documented profile is implemented. |
| CSS1 | Historical property/behavior inventory and RGB range handling; shared definitions follow the corrected specifications. |
| CSS syntax errors | Declaration-local rejection and bounded recovery; complete browser recovery is not claimed. |
| CSS imports and cascade | Import source order, relative sheet identity, specificity and importance. Fetching is replaced by an explicit catalog. |
| CSS border properties | Independent sides and shorthand semantics; the package documents its own keyword widths and supported contexts. |
| CSS 2.1 text | Shared definitions for inherited text spacing and first-line indentation. Browser/PDF witnesses scope the implemented geometry; full text conformance remains unqualified. |
| CSS Cascade 5 | Cascade/inheritance concepts; no claim for all levels, layers or scopes. |
| CSS Values 4 | Absolute conversion: 1in = 96px = 72pt. |
| CSS Fragmentation 3 | Page-break and widow/orphan concepts within the supported profile. |
| Tagged PDF FAQ | Logical structure and accessibility context; tagging alone is not certification. |
| qpdf checking | Independent syntax/reference checks, not a full semantic or accessibility oracle. |
The HTML/CSS standards are broader than this package. The coverage matrix and tests define what this release actually implements.
The generated fixture illustrations are original MIT assets. The example Lato
fonts retain the OFL-1.1 notice under examples/assets/fonts/LICENCE.txt; the
Noto Sans test face retains its OFL notice under tests/Fixtures/fonts/OFL.txt.
Published PDFToolkit test image provenance is recorded alongside the fixtures.
The historical test5526c.htm and sec5526c.gif are unmodified development
fixtures under the W3C BSD licensing option. Their notice
and manifest retain source URLs, retrieval
date, exact hashes and licensing references. The GIF includes historical browser
chrome; it is not a full-image pixel oracle. Selected regression evidence does
not assert conformance for the full W3C suite or imply endorsement.