turbo-html2pdf 0.3.9 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -119,9 +119,9 @@ template (HTML + Jinja + t: directives)
119
119
  ▼
120
120
  render_pages(data, css, fonts):
121
121
  │ 1. render markup ── Jinja → HTML string (data substituted)
122
- │ 2. parse ── html5ever → node tree, t: directives typed
123
- │ 3. cascade + inherit ── CSS subset → ComputedStyle per node
124
- │ 4. layout ── box tree → block / inline / flex (taffy) / table
122
+ │ 2. parse ── turbo-dom document, t: directives as markers
123
+ │ 3. cascade + inherit ── turbo-dom-layout → ComputedStyle per node
124
+ │ 4. layout ── turbo-dom-layout: block / inline / flex (taffy) / table
125
125
  │ → a "galley" of positioned, shaped fragments
126
126
  │ 5. paginate ── break the galley into pages (orphans/widows,
127
127
  │ break rules, repeated <thead>); resolve
@@ -131,7 +131,7 @@ render_pages(data, css, fonts):
131
131
  PDF bytes borders, raster images, watermark
132
132
  ```
133
133
 
134
- Layout, font shaping (`rustybuzz`), and PDF writing (`pdf-writer` + `subsetter`) are
134
+ Layout (the shared `turbo-dom-layout` crate), font shaping (`rustybuzz`), and PDF writing (`pdf-writer` + `subsetter`) are
135
135
  all native; `taffy` powers flexbox. The engine embeds no fonts and does no network
136
136
  or filesystem I/O — fonts and images are supplied by the caller.
137
137
 
@@ -201,7 +201,7 @@ fs.writeFileSync('out.pdf', pdf) // %PDF-1.7
201
201
 
202
202
  ## Status
203
203
 
204
- `v0.3.8` is the release version for npm, PyPI and crates.io; registry
204
+ `v0.6.0` is the release version for npm, PyPI and crates.io; registry
205
205
  verification follows the root `PUBLISHING.md`. The core engine is heavily tested (the `turbo-html2pdf-core`
206
206
  crate holds 100% line coverage with a cyclomatic-complexity ≤ 5 gate). Bindings:
207
207
  Node (napi) and WebAssembly. See [`docs/`](https://github.com/miaskiewicz/turbo-html2pdf/blob/main/docs/) for the full guide and
@@ -63,8 +63,9 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
63
63
 
64
64
  # Bundled fonts — attribution & licenses
65
65
 
66
- These fonts are embedded into `turbo-html2pdf-core` when the default `bundled-fonts`
67
- feature is enabled (see `src/text/bundled.rs`). They back the CSS generic
66
+ These fonts are embedded into `turbo-dom-layout` (and so into turbo-html2pdf and
67
+ turbo-dom-raster) when the default `bundled-fonts` feature is enabled (see
68
+ turbo-dom-layout's `src/text/bundled.rs`). They back the CSS generic
68
69
  families so a document renders with zero caller-supplied fonts. Every face below
69
70
  is redistributed under a permissive open license; the full upstream license text
70
71
  ships alongside each family.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "turbo-html2pdf",
3
- "version": "0.3.9",
3
+ "version": "0.6.0",
4
4
  "description": "Fast native HTML/CSS + Jinja templating to PDF for Node — no headless browser, no Chromium.",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
Binary file
Binary file
Binary file
Binary file
Binary file