@qrcommunication/gigapdf-lib 0.29.0 → 0.30.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 +15 -0
- package/gigapdf.wasm +0 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,21 @@ 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.30.0] - 2026-06-17
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
|
|
11
|
+
- **Exact text widths.** Text-run bounding boxes (and the pen advance between
|
|
12
|
+
runs) now measure by **real glyph advances** instead of a 0.5-em estimate:
|
|
13
|
+
the content interpreter reads each font's `/Widths` (simple) or `/W`+`/DW`
|
|
14
|
+
(Type0/CID) table, and base-14 Helvetica/Courier without `/Widths` fall back
|
|
15
|
+
to built-in AFM/monospace metrics (`TextDecoder` gains a `CodeWidths` table;
|
|
16
|
+
`TJ` kerning is applied). This makes `textElements`, `structuredText` and
|
|
17
|
+
`search` bounding-box **widths** match a reference renderer — e.g. "Hello
|
|
18
|
+
GigaPDF Test" at 24 pt now measures 213.4 pt (was the 216 pt estimate),
|
|
19
|
+
matching pdfjs. Fonts whose metrics aren't embedded or built in (e.g. Times
|
|
20
|
+
without `/Widths`) still fall back to the estimate. No API change.
|
|
21
|
+
|
|
7
22
|
## [0.29.0] - 2026-06-16
|
|
8
23
|
|
|
9
24
|
### Added
|
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.30.0",
|
|
4
4
|
"description": "TypeScript SDK for gigapdf-lib — a zero-dependency Rust→WASM PDF engine: 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+JavaScript→PDF renderer (no headless browser; a suspendable JS VM gives lazy generators and spec-ordered async). Self-contained .wasm, no third-party runtime deps.",
|
|
5
5
|
"license": "PolyForm-Noncommercial-1.0.0",
|
|
6
6
|
"author": "Rony Licha / QR Communication",
|