Optional module · pdftoolkit/html-to-pdf 0.4.0

English · Français

Unreleased

0.4.0 — 2026-11-09

  • Add inherited word-spacing and letter-spacing with normal, zero and signed lengths, plus signed/percentage text-indent on the first eligible line. Preserve computed relative lengths through inheritance and reject invalid declarations before cascade.
  • Share adjusted shaped advances between wrapping, PDF text, inline decoration and link bounds. Preserve Unicode and combining marks; disable optional ligatures only for nonzero letter spacing, leaving normal/zero shaping intact. Keep unsupported negative advances and cross-span graphemes explicit.
  • Preserve first-line eligibility through BR, pagination and anonymous fragments around in-flow blocks. Resolve percentage indentation against the content width of the block containing the lines, independently of temporary float exclusions.
  • Add an original text example, native PDF/Unicode/geometry checks, independent Chromium/Firefox witnesses and negative oracle tests. Document the trailing grapheme advance convention and the limits of browser-pagination comparisons.
  • Update English/French guides and the CSS1 registry: 52 partial and 10 unsupported requirements. CSS1, complete text/font behavior, PDF/A and PDF/UA remain unqualified.

0.3.1 - 2026-11-09

  • Update the locked development dependency symfony/filesystem to 7.4.23, addressing GHSA-6prc-h956-hxjq in the code-style toolchain.
  • Preserve production code, public APIs, PHP requirements and every other locked package version and source reference.

0.3.0 — 2026-11-02

  • Add explicit-width left/right floats, nested exclusion contexts and clearance, with cumulative work limits and explicit rejection of unsupported fragmentation, table combinations and parent-child margin collapse. A document with visible floats must fit on one page; fixed-height visible overflow retains its paint extent.
  • Add ordered CSS family lists, caller-supplied named/generic font bindings and atomic supported font shorthand expansion. Keep missing variants/glyphs explicit; no system lookup or per-character fallback. Preserve specified line heights.
  • Accept recognized legacy Strict doctype metadata, definition-list source nodes, root/body canvas backgrounds and relative annotation links with an explicit base. Reject inline/block splitting that would discard a link or language scope.
  • Add opt-in static radio snapshots with checked/disabled state and logical Form/PrintField attributes; no interactive PDF fields, submission or JavaScript. Unsupported control styles/types remain explicit diagnostics or errors.
  • Preserve the historical box/float/clear HTML and reference GIF unchanged with source hashes and BSD notices. Add a native generator, browser geometry witnesses, independent PDF/text/color-mask checks and negative oracle controls.
  • Update English/French documentation and the registry: 49 partial, 13 unsupported requirements. No complete CSS1, PDF/A or PDF/UA qualification is claimed.

0.2.2 — 2026-11-02

  • Describe the native converter through primary HTML/CSS specifications, its implemented coverage and validation evidence. Keep the English/French guides and contributor policy consistent.
  • Clarify independent MIT licensing and original example assets while retaining explicit CSS coverage and PDF/A/PDF/UA qualification limits.
  • Documentation-only correction; conversion behavior, dependencies and public APIs are unchanged.

0.2.1 — 2026-11-02

  • Use the canonical Composer package pdftoolkit/pdf:^0.12.2 and migrated stable dependencies. Keep existing PHP namespaces, APIs and behavior.
  • Document migration of application requirements in English and French; preserve previous releases and their evidence.

0.2.0 — 2026-11-02

See the release assets for exact-candidate PHP, PDF and browser validation receipts; the CSS1 completion gate remains incomplete.

  • Validate original declaration values before the author cascade; preserve valid earlier values and reject malformed shorthands atomically. Clip original RGB components without trusting a parser's normalized serialization. Accept explicit positive RGB signs without changing source offsets, and reject unsupported or misplaced encoding directives before they change parser state.
  • Recover selected syntax errors in Report mode while keeping Reject strict; validate whole selector lists, support escaped selector identifiers, and bound selector-tree depth. Escaped declaration values remain unsupported.
  • Resolve ordered @import only against explicitly supplied stylesheet bytes, with optional HtmlSource::baseUri, cycle diagnostics and cumulative import, depth and CSS-byte limits. No implicit network or filesystem access.
  • Add independent border sides, eight visible styles plus none, shorthand reset and inheritance, transparent geometry and fragment-aware artifact painting. Inline border decorations and collapsed table borders remain unsupported.
  • Add an original CSS1 visual example and update bilingual guides. The registry now records 45 partial and 17 unsupported requirements, with no full CSS1 claim.
  • Preserve the legacy uniform ComputedStyle constructor; compiled borderWidth and borderColor are top-side projections. Use borderEdges() for independent sides.

0.1.0 — 2026-11-02

First independent native PHP release of pdftoolkit/html-to-pdf.

  • Separate HTML5 parsing, CSS cascade, typed styles, font preparation, layout, drawing and PDF serialization, with document-scoped budgets and state.
  • Selectable Unicode, supplied TrueType variants, cached OpenType preparation, PNG/JPEG resources, logical PDF tags and associated URI links.
  • Block/inline text, lists, positive margin collapse, fixed tables with repeated header artifacts, explicit page breaks and paragraph widow/orphan rules.
  • Reproducible invoice, illustrated catalogue and four-page inventory, with independent PDF/Unicode/structure/raster validation and browser style witnesses.
  • English/French guides, precise unsupported-feature diagnostics and a CSS1-first progression registry covering all 53 CSS1 properties and cross-cutting behaviors.

This release is an experimental input profile, not complete CSS1 or CSS2. CSS2 historical coverage, CSS2.1 and individually versioned modern modules follow the qualification sequence documented in docs/css-levels.md. PDF/A and PDF/UA certification remain outside the validated profile.

Guide source at the documented commit ↗