@qrcommunication/gigapdf-lib 0.111.0 → 0.112.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/CHANGELOG.md +25 -0
- package/gigapdf.wasm +0 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,31 @@ project adheres to [Semantic Versioning](https://semver.org/).
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.112.0] - 2026-07-01
|
|
10
|
+
|
|
11
|
+
### Fixed — per-word tiling for space-justified & `Td`-positioned runs (footers now overlay-faithful)
|
|
12
|
+
|
|
13
|
+
`run_layout` previously split a run into positioned `segments` only at large `TJ`
|
|
14
|
+
kern jumps. A run justified by **word spacing** (`Tw`) or **wide space glyphs** —
|
|
15
|
+
or one whose words are placed by separate `Td` moves with wide leading gaps (a
|
|
16
|
+
CERFA-style legal footer) — stayed a single long box, so a host painting one
|
|
17
|
+
editable box per run rendered its glyphs at the browser's natural (non-justified)
|
|
18
|
+
advance: the text drifted and collided with the neighbouring runs.
|
|
19
|
+
|
|
20
|
+
Now **any positioned run** — one carrying a real `TJ` jump **or** a space wider
|
|
21
|
+
than half an em — is split at **word boundaries**, each word tiling at its exact
|
|
22
|
+
rasterizer pen `x`. Every space (a normal one or a wide justification gap) tiles
|
|
23
|
+
as an inter-segment **gap**, never inside a word box, and a **leading** gap is
|
|
24
|
+
folded so a lone word after it (e.g. a footer's `" financière"`) lands at its true
|
|
25
|
+
pen `x` instead of drifting left. Single-word positioned runs now emit their one
|
|
26
|
+
fragment too (the run box alone would sit at the pre-gap pen). Whitespace is
|
|
27
|
+
detected by the decoded glyph, so a font whose space isn't byte `0x20` still tiles
|
|
28
|
+
per word. Plain natural-flow runs (no jump, only normal spaces) stay a single
|
|
29
|
+
inline-editable box — byte-identical.
|
|
30
|
+
|
|
31
|
+
Result: a justified small-print legal footer reproduces the rasterizer
|
|
32
|
+
word-for-word in an editable overlay.
|
|
33
|
+
|
|
9
34
|
## [0.111.0] - 2026-07-01
|
|
10
35
|
|
|
11
36
|
### Added — per-run text `segments` for pixel-faithful editable overlays (`TextElementInfo.segments`)
|
package/gigapdf.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qrcommunication/gigapdf-lib",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.112.0",
|
|
4
4
|
"description": "TypeScript SDK for gigapdf-lib — a Rust→WASM document engine with no third-party PDF/Office/image library: read/edit/render, OCR, full-text search, AcroForm fields (read · fill · create), annotations, signing, encryption, PDF↔Office/HTML/RTF conversions, and a native HTML+CSS→PDF renderer with inline JavaScript (no headless browser). Cryptography uses audited RustCrypto; JavaScript uses the Boa engine; everything else is pure Rust. Single wasm-bindgen-free .wasm with one host import (entropy).",
|
|
5
5
|
"license": "PolyForm-Noncommercial-1.0.0",
|
|
6
6
|
"author": "Rony Licha / QR Communication",
|