@qrcommunication/gigapdf-lib 0.110.0 → 0.110.2

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
@@ -6,6 +6,41 @@ project adheres to [Semantic Versioning](https://semver.org/).
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.110.2] - 2026-06-30
10
+
11
+ ### Added — `ocr_serve`: persistent host-side OCR microservice
12
+
13
+ - New `gigapdf-ocr-rten` binary **`ocr_serve`** + `OcrEngine::rec_names()`. It loads the
14
+ PaddleOCR-on-RTen models **once** at boot and serves recognition over a minimal local
15
+ HTTP/1.1 endpoint (zero web-framework dependency — `std::net` only): `GET /health`
16
+ (`{ok,recCount,languages}`) and `POST /ocr` (PNG body, optional `X-Ocr-Model` header for a
17
+ forced recognizer; auto per-line script selection otherwise) → NDJSON words in image pixel
18
+ space (`{text,x,y,w,h,confidence,model}`). This is the "host-side endpoint" the lean wasm
19
+ client calls — amortizing the multi-hundred-MB model load across requests instead of per call.
20
+ The `ocr_serve` binary and the assembled `.rten` model set are distributed as GitHub
21
+ **release assets** for host deployment (not part of the npm package).
22
+
23
+ ### Fixed — npm package no longer bundles the legacy `.gpocr` models
24
+
25
+ - `0.110.1` accidentally bundled the 22 legacy `.gpocr` OCR weights into the npm tarball. Those
26
+ belong to the **removed** client-side recognizer (≤0.63.x); `0.110.x` does OCR **host-side**
27
+ via `gigapdf-ocr-rten` (RTen `.rten` models), so the `.gpocr` files are dead weight in the
28
+ package. The release pipeline no longer fetches/bundles them — the npm package is lean again.
29
+
30
+ ## [0.110.1] - 2026-06-30
31
+
32
+ ### Fixed — releases now ship the OCR `.gpocr` models again
33
+
34
+ - The 22 per-script line-OCR model weights (`models/ocr_*.gpocr`, 9.6 MB) are
35
+ **git-ignored** (`sdk/.gitignore: models/`), so a clean CI checkout had none —
36
+ every CI-published version since the ignore (e.g. `0.109.1`, `0.110.0`) shipped
37
+ **zero** OCR models, silently degrading runtime OCR to the mono-glyph
38
+ classifier (`0.63.0` still had them because it predates the gap). The release
39
+ workflow now **fetches the models from a durable GitHub Release asset
40
+ (`ocr-models-v1`), verifies their SHA-256, and stages them** before
41
+ `build-wasm.sh`, so every published package carries the full model set again —
42
+ without committing 9.6 MB of weights to the repo. No engine/API change.
43
+
9
44
  ## [0.110.0] - 2026-06-30
10
45
 
11
46
  ### Added — `extractWebFont`: serve a document's own embedded fonts to a browser
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.110.0",
3
+ "version": "0.110.2",
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",