@qrcommunication/gigapdf-lib 0.46.0 → 0.47.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,11 +4,24 @@ 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.46.0] - 2026-06-18
7
+ ## [0.47.0] - 2026-06-18
8
8
 
9
- ### Added
9
+ ### Fixed
10
10
 
11
- - **Flatten form XObjects for in-place editing.** `flattenFormXObjects(page)`
11
+ - **`'` and `"` (next-line-show) text operators are now extracted and
12
+ positioned correctly.** The content interpreter behind `textElements`,
13
+ `textRuns`, full-text search and the PDF→Office converters treated `Tj`/`TJ`
14
+ as the only text-showing operators, so runs drawn with `'` (move to next line
15
+ then show) or `"` (set spacing + next-line show) were **dropped entirely** and
16
+ the implicit line move they perform was **skipped** — shifting every
17
+ subsequent run in the same `BT…ET` block up by the accumulated leading.
18
+ Real-world impact: invoice/letter bodies (generated with leading-based line
19
+ breaks) lost lines and mis-placed the rest (e.g. a subtitle landing on the
20
+ title's baseline), breaking click-to-edit hit targets and conversion fidelity.
21
+ `'`/`"` now apply their implicit `T*` before showing and count as text runs,
22
+ so extraction, the run index used by `replaceText`/`removeElement`/`moveElement`,
23
+ and font resolution all stay consistent. Rendering (`renderPage`) was already
24
+ correct. No API change. `flattenFormXObjects(page)`
12
25
  inlines every form XObject invoked via `Do` into the page content stream
13
26
  (applying its `/Matrix`, merging its resources with collision-safe name
14
27
  remapping, recursing into nested forms with a depth + cycle guard). Each
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.46.0",
3
+ "version": "0.47.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",