@qrcommunication/gigapdf-lib 0.114.0 → 0.114.1
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 +21 -0
- package/gigapdf.wasm +0 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,27 @@ project adheres to [Semantic Versioning](https://semver.org/).
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.114.1] - 2026-07-03
|
|
10
|
+
|
|
11
|
+
### Fixed — `replaceText` no longer empties or garbles runs (re-encoding = exact inverse of decoding)
|
|
12
|
+
|
|
13
|
+
`replaceText` re-encoded the new text through the **embedded program's cmap**
|
|
14
|
+
(Type0) or through **blind WinAnsi** (simple fonts), ignoring the
|
|
15
|
+
`/ToUnicode` / `/Encoding` / `/Differences` maps the extraction actually
|
|
16
|
+
decodes with. On subset-heavy documents (repacked or absent cmaps, partial
|
|
17
|
+
per-wrapper `/ToUnicode`, spaces remapped to low codes) this silently wrote
|
|
18
|
+
`.notdef` gids — `replaceText` returned `true` while the run went **empty**
|
|
19
|
+
— or wrong gids (mojibake). Measured on a dense CERFA: 527 identical-text
|
|
20
|
+
replacements → 140 OK / 239 emptied / 148 garbled BEFORE, **527/527 OK**
|
|
21
|
+
after.
|
|
22
|
+
|
|
23
|
+
Re-encoding now inverts the run's own decode maps first, then borrows codes
|
|
24
|
+
from **sibling wrappers of the same physical program** (resolved by
|
|
25
|
+
reference, as 0.114.0 does for extraction) — borrowed codes are taught back
|
|
26
|
+
to the wrapper's `/ToUnicode` so the text re-reads — then the program cmap.
|
|
27
|
+
A character unknown to the program now fails with `false` **without
|
|
28
|
+
mutating the run** (never again `true` + emptied).
|
|
29
|
+
|
|
9
30
|
## [0.114.0] - 2026-07-03
|
|
10
31
|
|
|
11
32
|
### Fixed — embedded web fonts resolved by PHYSICAL identity (accents no longer lost)
|
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.114.
|
|
3
|
+
"version": "0.114.1",
|
|
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",
|