@qrcommunication/gigapdf-lib 0.47.0 → 0.49.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
@@ -4,6 +4,59 @@ 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.49.0] - 2026-06-18
8
+
9
+ ### Changed
10
+
11
+ - **Office → PDF higher fidelity.** DOCX paragraph line spacing
12
+ (`w:spacing@line/@lineRule` → CSS `line-height`), bullet/numbered lists
13
+ (`w:numPr`, ODF `text:list` — indentation + bullet), and table cell merges
14
+ (`w:gridSpan` expands to physical cells so the merge actually spans columns;
15
+ `w:vMerge`) are now carried through, and XLSX cell fills (`xl/styles.xml`
16
+ `cellXfs`→`patternFill`/`fgColor`) become `background-color`. Embedded images
17
+ (DOCX/PPTX `a:blip`, ODF `draw:image`) render as inline `data:` URIs.
18
+ - **PDF → Office higher fidelity.** Vector strokes keep their **exact dash
19
+ pattern** (DrawingML `a:custDash`, ODF `draw:stroke-dash`) instead of a generic
20
+ preset, and shapes/text in **ICC-based / `cs`-`scn` colour spaces** now resolve
21
+ to their real colour (DeviceRGB/Gray/CMYK and ICCBased by component count)
22
+ instead of defaulting to black.
23
+
24
+ ### Known limitations
25
+
26
+ - DOCX per-column table widths (`w:tblGrid`) are not yet honoured — the HTML
27
+ table layout uses equal-width columns (a future layout-engine change).
28
+ - Floating shapes in XLSX/ODS spreadsheets are not yet exported.
29
+
30
+ ## [0.48.0] - 2026-06-18
31
+
32
+ ### Fixed
33
+
34
+ - **`Z_SYNC_FLUSH` deflate streams without a final block now decode.** Content
35
+ streams flushed with `Z_SYNC_FLUSH` end with an empty stored block
36
+ (`00 00 ff ff`, `BFINAL=0`) and no final block — common in signed PDFs (the
37
+ `q`/`Q`/overlay content pieces of Adobe FillSign) and any deflate produced via
38
+ a flush. The decoder looped past the flush expecting another block, hit
39
+ end-of-input and errored, so affected pages extracted **nothing**. It now
40
+ returns the bytes decoded so far when the input is exhausted at a block
41
+ boundary (matching pdfjs/Acrobat leniency); mid-block truncation still errors,
42
+ so genuinely corrupt data is not masked.
43
+
44
+ ### Changed
45
+
46
+ - **Office → PDF: real page geometry + font names.** Conversions no longer
47
+ hard-code US-Letter/0.5in. The page size and margins are read from the source
48
+ document (DOCX `w:sectPr/w:pgSz`+`w:pgMar`, PPTX `p:sldSz`, ODF
49
+ `style:page-layout-properties`) with sensible per-format fallbacks, and each
50
+ run's real `font-family` (DOCX `w:rFonts`, PPTX `a:latin`, ODF `fo:font-name`)
51
+ is emitted so the host font-resolution path embeds the correct faces with true
52
+ metrics instead of a 0.5-em estimate. DOCX paragraph alignment, spacing and
53
+ indentation (`w:jc`/`w:spacing`/`w:ind`) are carried through.
54
+ - **PDF → Office: vector shapes keep their geometry and colours.** The Office
55
+ exporters (DOCX/PPTX DrawingML, ODT/ODP ODF) now emit real shapes — rectangles
56
+ and `custGeom`/`draw:path` curves — sourced from `page_vector_paths`, with
57
+ fill/stroke RGB, opacity, stroke width and dash, instead of a single grey
58
+ bounding-box rectangle. Clip-only paths no longer leak stray rectangles.
59
+
7
60
  ## [0.47.0] - 2026-06-18
8
61
 
9
62
  ### 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.47.0",
3
+ "version": "0.49.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",