@qrcommunication/gigapdf-lib 0.58.2 → 0.58.3

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 CHANGED
@@ -4,6 +4,24 @@ All notable changes to `@qrcommunication/gigapdf-lib` are documented here.
4
4
  The format follows [Keep a Changelog](https://keepachangelog.com/) and the
5
5
  project adheres to [Semantic Versioning](https://semver.org/).
6
6
 
7
+ ## [0.58.3] - 2026-06-21
8
+
9
+ ### Fixed
10
+
11
+ - **Text extraction (`textElements()`, `structuredText()`) recovers far more
12
+ characters from subset fonts with broken/partial `/ToUnicode`.** Type0
13
+ (Identity-H) subsets whose `/ToUnicode` is affine but incomplete, and simple
14
+ fonts using `/MacRomanEncoding` or `/Differences`, were decoded as raw WinAnsi
15
+ — yielding U+FFFD (`�`) for characters that are perfectly *rendered* (the glyph
16
+ is drawn; only the code→Unicode map is missing). Extraction now follows the
17
+ ISO 32000 §9.10 priority: `/ToUnicode` → embedded `cmap`/`post` (`cid_to_gid`)
18
+ → an auto-calibrated affine inference for partial `/ToUnicode` subsets →
19
+ `/Encoding` base (WinAnsi/MacRoman/Standard) + `/Differences` resolved through
20
+ the Adobe Glyph List. On a real 76-font form this cut U+FFFD from **243 to 25**
21
+ per page (the 25 residual are codes that *no* source in the file maps — not
22
+ recoverable by any reader). **Page rendering was already correct and is
23
+ unchanged** — this only affects the extracted/editable text layer.
24
+
7
25
  ## [0.58.2] - 2026-06-21
8
26
 
9
27
  ### Fixed
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.58.2",
3
+ "version": "0.58.3",
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",