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 +5 -5
- package/THIRD_PARTY_NOTICES.md +3 -2
- package/package.json +1 -1
- package/turbo-pdf-napi.darwin-arm64.node +0 -0
- package/turbo-pdf-napi.linux-arm64-gnu.node +0 -0
- package/turbo-pdf-napi.linux-x64-gnu.node +0 -0
- package/turbo-pdf-napi.linux-x64-musl.node +0 -0
- package/turbo-pdf-napi.win32-x64-msvc.node +0 -0
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 ──
|
|
123
|
-
│ 3. cascade + inherit ──
|
|
124
|
-
│ 4. layout ──
|
|
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.
|
|
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
|
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -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-
|
|
67
|
-
|
|
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
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|