@qrcommunication/gigapdf-lib 0.114.1 → 0.115.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 CHANGED
@@ -6,6 +6,82 @@ project adheres to [Semantic Versioning](https://semver.org/).
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.115.0] - 2026-07-03
10
+
11
+ Fidelity release across the whole conversion matrix, both directions —
12
+ driven by an exhaustive empirical audit (real-world corpus + synthetic
13
+ feature documents).
14
+
15
+ ### Fixed — extracted text of every Office-produced PDF (bullets, accents, €…)
16
+
17
+ The gid→Unicode map merged ALL cmap subtables with "lowest codepoint wins",
18
+ so the **Mac Roman** subtable injected its raw bytes as Unicode: the bullet
19
+ glyph was declared as `¥` (and `é`/`€`/`–`/curly quotes were wrong) in the
20
+ `/ToUnicode` of every font embedded by the HTML→PDF renderer. The rasterized
21
+ page was correct, but extraction/search/copy-paste — and any editor overlay
22
+ built on extracted text — showed `¥` instead of `•`. Subtables are now
23
+ merged with strict priority and Mac Roman is translated. A real 72-page
24
+ Word document went from 216 `¥` / 0 `•` to 216 `•`.
25
+
26
+ ### Fixed — lists are faithful in BOTH directions
27
+
28
+ - DOCX/ODT import: real bullet characters (`w:lvlText`, Symbol/Wingdings
29
+ PUA resolved, per-level defaults `•`/`◦`/`▪`), numbering formats with
30
+ their real suffix (`1.` vs `a)`), `w:start`/overrides honoured; ODT
31
+ numbered lists no longer render as bullets.
32
+ - Model: `List.marker_suffix` (additive JSON field) + per-level ordinal
33
+ counters everywhere (model→PDF no longer prints a running global count).
34
+ - Exports: DOCX `numbering.xml` carries `%1{suffix}` + start; ODT
35
+ `style:num-suffix`; HTML nests real `<ul>/<ol>` (+ `start`); Markdown
36
+ indents by level with per-level ordinals. RTF `\'xx` bytes now decode
37
+ through Symbol/Wingdings charsets (`•` instead of `·`).
38
+
39
+ ### Fixed — exported files open and look right ([EXPORT])
40
+
41
+ - **PDF→DOCX was refused by Word/LibreOffice** whenever a reconstructed
42
+ header/footer contained a shape: the VML markup lacked its `xmlns:v`
43
+ declaration. All four corpus exports now convert cleanly.
44
+ - Reconstructed section margins are clamped (no more 578 pt bottom
45
+ margins) and left indents are re-anchored to the estimated margin (text
46
+ no longer shifts right by a double offset).
47
+ - A letter no longer exports with **phantom two-column layout**: column
48
+ detection now requires real side-by-side text spans.
49
+ - **PDF→PPTX slides are no longer empty**: framed blocks become positioned
50
+ shapes/pictures (37 media exported from a pitch deck that previously
51
+ exported zero).
52
+ - Positioned images export as `wp:anchor` at their exact page offset
53
+ (was: inlined at a default size); footers matching "Page N / M" emit
54
+ dynamic `PAGE`/`NUMPAGES` fields.
55
+
56
+ ### Fixed — real-world files open at all ([IMPORT])
57
+
58
+ - The zip reader now parses the **End-Of-Central-Directory / central
59
+ directory** (zip64 included): OOXML/ODF files written with streaming
60
+ **data descriptors** — 3 of 8 real-world files in the audit corpus, and
61
+ every LibreOffice ODT/ODP — previously imported as EMPTY documents.
62
+ - ODP: text inside `draw:custom-shape` (LibreOffice's standard text box)
63
+ is now read and positioned; slide geometry comes from the master page
64
+ (a 16:9 deck no longer imports as A4 portrait).
65
+ - **One slide = one page**: PPTX/ODP decks no longer stack every slide on
66
+ 1-2 pages (11-slide and 39-slide decks paginate exactly); slide images
67
+ are resolved from the slide part (they were all silently dropped) and
68
+ sized to their real frame.
69
+
70
+ ### Fixed — opening a Word file looks like Word (display path)
71
+
72
+ - Character styles now render: strikethrough, highlight (`w:highlight`,
73
+ run `w:shd`), superscript/subscript, letter-spacing, hidden runs.
74
+ - Tables: cell shading, vertical alignment, real border resolution
75
+ (`w:tcBorders`/`w:tblBorders`, `nil` respected), **real `w:vMerge`
76
+ rowspans** and `gridSpan` colspans (no more phantom cells or hard-coded
77
+ spans), cell widths.
78
+ - Headers/footers repeat on **every page** through the renderer's
79
+ header/footer bands, with live `PAGE`/`NUMPAGES` fields (`Page 2 / 2`
80
+ on page 2); `w:pgMar` header/footer offsets honoured.
81
+ - Multi-column sections render with real CSS columns (`w:cols` + gap) and
82
+ `column_count` reaches the model; continuous section breaks no longer
83
+ force a page break.
84
+
9
85
  ## [0.114.1] - 2026-07-03
10
86
 
11
87
  ### Fixed — `replaceText` no longer empties or garbles runs (re-encoding = exact inverse of decoding)
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.1",
3
+ "version": "0.115.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",