@qrcommunication/gigapdf-lib 0.115.0 → 0.116.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 +30 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -2
- package/dist/index.d.ts +11 -2
- package/dist/index.js.map +1 -1
- package/gigapdf.wasm +0 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,36 @@ project adheres to [Semantic Versioning](https://semver.org/).
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.116.0] - 2026-07-03
|
|
10
|
+
|
|
11
|
+
### Fixed — images survived NO JSON-bridged export (html, rtf, epub, md)
|
|
12
|
+
|
|
13
|
+
`ImageRef.resource` — the u64 content hash keying `resources.images` — was
|
|
14
|
+
serialized as a **raw JSON number**. JavaScript rounds integers beyond 2^53,
|
|
15
|
+
so any host round-tripping the model through JSON (`toModel()` →
|
|
16
|
+
`modelToHtml`/`modelToRtf`/`modelToEpub`/`modelToMarkdown`) corrupted every
|
|
17
|
+
image id and the resource lookup failed silently: **zero images** in HTML/RTF
|
|
18
|
+
output, EPUB packages with orphaned (unreferenced) images, wrong Markdown
|
|
19
|
+
file names. The id is now serialized as a **string** (the Rust reader accepts
|
|
20
|
+
both forms, so older JSON still loads). A pitch deck went from 0 to 37 images
|
|
21
|
+
in HTML, RTF and EPUB exports. Direct exports (`toDocx`…) were unaffected.
|
|
22
|
+
|
|
23
|
+
### Changed — PDF→XLSX/ODS export through the reconstructed model
|
|
24
|
+
|
|
25
|
+
`toXlsx()`/`toOds()` used a legacy glyph-grid path that dropped text runs the
|
|
26
|
+
model keeps (names, dates, reference numbers measurably missing on a real
|
|
27
|
+
letter) and produced untyped, unstyled grids. They now export through
|
|
28
|
+
`reconstruct_model` like every other format: typed tables with merged cells
|
|
29
|
+
(`col_span`), bold header rows and shading — and when a PDF has no
|
|
30
|
+
spreadsheet blocks, a worksheet is synthesized per page from the model
|
|
31
|
+
(tables as real rows/cells, paragraphs/headings/lists as reading-order
|
|
32
|
+
rows). The grid writer stays available for host-provided grids
|
|
33
|
+
(`gridsToXlsx`).
|
|
34
|
+
|
|
35
|
+
### SDK
|
|
36
|
+
|
|
37
|
+
- `GigaImageRef.resource` is typed `string | number` (canonical: string).
|
|
38
|
+
|
|
9
39
|
## [0.115.0] - 2026-07-03
|
|
10
40
|
|
|
11
41
|
Fidelity release across the whole conversion matrix, both directions —
|