@qrcommunication/gigapdf-lib 0.48.0 → 0.50.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,58 @@ 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.50.0] - 2026-06-18
8
+
9
+ ### Added
10
+
11
+ - **Bundled fallback font (offline rendering).** HTML→PDF and Office→PDF now embed
12
+ a permissively-licensed fallback font (Liberation Sans, SIL OFL 1.1) when the
13
+ host provides no matching font, so text renders with real, selectable glyphs and
14
+ correct advance widths with **zero network** — instead of rough average-width
15
+ estimates. Host-provided / Google fonts still take precedence; `needed_fonts`
16
+ is unchanged.
17
+ - **Annotation appearances in the rasterizer.** `renderPage` now composites each
18
+ annotation's normal appearance stream (`/AP /N`, selected by `/AS`) onto the
19
+ page, mapping the appearance `/BBox`·`/Matrix` onto the annotation `/Rect`
20
+ (ISO 32000-1 §12.5.5) and honouring `/CA` opacity plus the Hidden/NoView flags.
21
+ Previously annotation appearances were not drawn.
22
+ - **Floating shapes in XLSX / ODS export.** Page vector shapes are now carried
23
+ into a real drawing layer (XLSX `xl/drawings` `xdr:absoluteAnchor` + DrawingML
24
+ geometry/fill/stroke/dash; ODS `draw:` shapes), matching the DOCX/PPTX/ODT/ODP
25
+ exporters. Shape-less output stays byte-identical.
26
+
27
+ ### Changed
28
+
29
+ - **Table column widths honoured.** The native HTML layout engine reads per-column
30
+ widths (`<colgroup>`/`<col>` or first-row cell widths; pt/px/%) and positions
31
+ cells proportionally, with `colspan` summing the spanned widths, instead of
32
+ forcing equal columns. The DOCX (`w:tblGrid`/`w:gridCol`) and ODF
33
+ (`table:table-column` / `style:column-width`) importers emit those widths.
34
+ Tables without declared widths keep equal columns (no regression).
35
+
36
+ ## [0.49.0] - 2026-06-18
37
+
38
+ ### Changed
39
+
40
+ - **Office → PDF higher fidelity.** DOCX paragraph line spacing
41
+ (`w:spacing@line/@lineRule` → CSS `line-height`), bullet/numbered lists
42
+ (`w:numPr`, ODF `text:list` — indentation + bullet), and table cell merges
43
+ (`w:gridSpan` expands to physical cells so the merge actually spans columns;
44
+ `w:vMerge`) are now carried through, and XLSX cell fills (`xl/styles.xml`
45
+ `cellXfs`→`patternFill`/`fgColor`) become `background-color`. Embedded images
46
+ (DOCX/PPTX `a:blip`, ODF `draw:image`) render as inline `data:` URIs.
47
+ - **PDF → Office higher fidelity.** Vector strokes keep their **exact dash
48
+ pattern** (DrawingML `a:custDash`, ODF `draw:stroke-dash`) instead of a generic
49
+ preset, and shapes/text in **ICC-based / `cs`-`scn` colour spaces** now resolve
50
+ to their real colour (DeviceRGB/Gray/CMYK and ICCBased by component count)
51
+ instead of defaulting to black.
52
+
53
+ ### Known limitations
54
+
55
+ - DOCX per-column table widths (`w:tblGrid`) are not yet honoured — the HTML
56
+ table layout uses equal-width columns (a future layout-engine change).
57
+ - Floating shapes in XLSX/ODS spreadsheets are not yet exported.
58
+
7
59
  ## [0.48.0] - 2026-06-18
8
60
 
9
61
  ### 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.48.0",
3
+ "version": "0.50.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",