@qrcommunication/gigapdf-lib 0.49.0 → 0.51.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,69 @@ 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.51.0] - 2026-06-18
8
+
9
+ ### Added
10
+
11
+ - **Rasterizer fidelity — form XObjects, clipping, shadings, soft masks, blend modes.**
12
+ `renderPage` now paints page-content form XObjects (`Do`, cycle-guarded, clipped to
13
+ `/BBox`), honours path clipping (`W`/`W*`), renders axial (type 2) and radial (type 3)
14
+ **shadings** (the `sh` operator and shading-`/Pattern` fills) with `/Function` ramps and
15
+ `/Extend`, stamps tiling patterns, and applies ExtGState separable **blend modes**
16
+ (`/BM`), constant alpha (`/ca`) and luminosity **soft masks** (`/SMask`). Previously
17
+ these were ignored (clips bled, gradients/patterns/transparency were missing).
18
+ - **OpenType shaping — GPOS kerning + GSUB ligatures.** Text measurement and layout now
19
+ apply GPOS pair kerning and GSUB ligature/substitution; the embedded font subset keeps
20
+ its `cmap` so text extraction stays correct.
21
+ - **Full-Unicode ToUnicode.** Type0/CFF fonts and supplementary-plane glyphs get a
22
+ ToUnicode mapping derived from the font `cmap` — no more `U+FFFD` for composite fonts
23
+ lacking `/ToUnicode`, and CFF ligature glyph names resolve.
24
+ - **Unified editable document model (foundation).** A new zero-dependency `model` module
25
+ (`Document → Section → Page → Block → Inline`, plus spreadsheet/slide sub-models, named
26
+ styles, page geometry) with a versioned JSON round-trip — the base for format-agnostic
27
+ re-editability.
28
+
29
+ ### Changed
30
+
31
+ - **HTML/CSS layout fidelity.** `position` (relative/absolute/fixed) + `z-index` +
32
+ `overflow` clipping, real `float` text wrapping, flex `align-*`/`flex-wrap`/`order` and
33
+ vertical `justify-content`, CSS grid rows + `gap`, table `rowspan`, plus `@font-face`,
34
+ `letter-spacing`/`word-spacing`, `calc()`/`var()` and `rem`/`vw`/`vh` units.
35
+ - **Office import fidelity.** DOCX named-style inheritance (`styles.xml`/`docDefaults`) +
36
+ headers/footers + `PAGE`/`NUMPAGES` fields; PPTX tables (`a:tbl`) render with column
37
+ widths and theme fonts; real ordered-list numbering; XLSX theme/indexed cell colours,
38
+ number formats (date serials and currency render formatted, not raw), and merged cells
39
+ (`colspan`/`rowspan`).
40
+
41
+ ## [0.50.0] - 2026-06-18
42
+
43
+ ### Added
44
+
45
+ - **Bundled fallback font (offline rendering).** HTML→PDF and Office→PDF now embed
46
+ a permissively-licensed fallback font (Liberation Sans, SIL OFL 1.1) when the
47
+ host provides no matching font, so text renders with real, selectable glyphs and
48
+ correct advance widths with **zero network** — instead of rough average-width
49
+ estimates. Host-provided / Google fonts still take precedence; `needed_fonts`
50
+ is unchanged.
51
+ - **Annotation appearances in the rasterizer.** `renderPage` now composites each
52
+ annotation's normal appearance stream (`/AP /N`, selected by `/AS`) onto the
53
+ page, mapping the appearance `/BBox`·`/Matrix` onto the annotation `/Rect`
54
+ (ISO 32000-1 §12.5.5) and honouring `/CA` opacity plus the Hidden/NoView flags.
55
+ Previously annotation appearances were not drawn.
56
+ - **Floating shapes in XLSX / ODS export.** Page vector shapes are now carried
57
+ into a real drawing layer (XLSX `xl/drawings` `xdr:absoluteAnchor` + DrawingML
58
+ geometry/fill/stroke/dash; ODS `draw:` shapes), matching the DOCX/PPTX/ODT/ODP
59
+ exporters. Shape-less output stays byte-identical.
60
+
61
+ ### Changed
62
+
63
+ - **Table column widths honoured.** The native HTML layout engine reads per-column
64
+ widths (`<colgroup>`/`<col>` or first-row cell widths; pt/px/%) and positions
65
+ cells proportionally, with `colspan` summing the spanned widths, instead of
66
+ forcing equal columns. The DOCX (`w:tblGrid`/`w:gridCol`) and ODF
67
+ (`table:table-column` / `style:column-width`) importers emit those widths.
68
+ Tables without declared widths keep equal columns (no regression).
69
+
7
70
  ## [0.49.0] - 2026-06-18
8
71
 
9
72
  ### Changed
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.49.0",
3
+ "version": "0.51.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",