@zilijonas/foliark 0.3.1 → 0.3.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/README.md +2 -2
- package/SUPPORT_MATRIX.md +1 -1
- package/package.json +1 -1
- package/wasm/foliark_wasm_bg.wasm +0 -0
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<p align="center"><b>A PDF engine in Rust and WebAssembly for the browser. Extract, search, render, edit, redact and sanitize PDFs on the user's device. The document never leaves it.</b></p>
|
|
6
6
|
|
|
7
7
|
```sh
|
|
8
|
-
npm install @zilijonas/foliark@0.3.
|
|
8
|
+
npm install @zilijonas/foliark@0.3.2 --save-exact
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
ESM only, no runtime dependencies, typed. Runs in a worker, fetches only its own `.wasm` and worker script, and refuses what it cannot do safely with a typed `FoliarkError` instead of degrading quietly.
|
|
@@ -142,6 +142,6 @@ Chromium on desktop (macOS arm64) is supported and has budgets. WebKit is suppor
|
|
|
142
142
|
|
|
143
143
|
[AGPL-3.0-only](https://github.com/zilijonas/foliark/blob/main/LICENSE), the same licence family as the AGPL option PyMuPDF is offered under. If the AGPL does not fit your use, separate commercial licensing is available: see `COMMERCIAL-LICENSING.md` in the package. This is not legal advice. Details are in `LICENSING.md`.
|
|
144
144
|
|
|
145
|
-
Foliark is free software, so the complete corresponding source of version 0.3.
|
|
145
|
+
Foliark is free software, so the complete corresponding source of version 0.3.2 (Rust engine, vendored hayro fork and patches, build scripts) is tag `v0.3.2` of https://github.com/zilijonas/foliark. Build steps are in `docs/development.md` there (`scripts/build-wasm.sh`, `pnpm build:sdk`, `tests/package-consumers/pack.sh`). The package contains `dist/`, `wasm/` (5.8 MB raw, 2.2 MB gzip), `cmaps/`, `LICENSE`, `LICENSING.md`, `COMMERCIAL-LICENSING.md`, `LICENSE_FOXIT`, `NOTICE`, `THIRD_PARTY_NOTICES.md` and `SUPPORT_MATRIX.md`.
|
|
146
146
|
|
|
147
147
|
PyMuPDF and MuPDF are products of Artifex Software, Inc. Foliark is independent of them and not affiliated with Artifex.
|
package/SUPPORT_MATRIX.md
CHANGED
|
@@ -35,7 +35,7 @@ Host requirements, each tested in the browser specs: static files only, `applica
|
|
|
35
35
|
| Search, hit test, select | supported on the multi-column Unicode fixture (diacritic folding, column drag stays on its line) | `hddn-adapter.md` (NEW-67) | `INVALID_ARGUMENT` | regex and hyphenation-aware search are absent by design (spec 16); not wired into HDDN's UI |
|
|
36
36
|
| Render | supported with warnings | `native-roundtrip.md` (0 channel values off by more than 2/255 between input and output renders); reduced vs exact decode max diff 1 (`docs/performance/comparison.md`) | warnings `FONT_SUBSTITUTED`, `IMAGE_DECODE_FAILED`, `ANNOTATION_APPEARANCE_MISSING`, `CMAP_MISSING` (page is `complete:false`); `LIMIT_EXCEEDED` over `maxRenderPixels` | pixel accuracy against a second renderer on real documents (PyMuPDF differs by mean 0.02 to 3.1 levels on the scan fixtures) |
|
|
37
37
|
| Predefined CMaps (legacy CJK encodings) | supported (pack in the package) | `cmaps/` 63 Adobe files; fixture `generated/cjk-predefined-cmaps.pdf`: extract equals PyMuPDF, render has no `CMAP_MISSING`, redaction + native export judged by `objects.py`/PyMuPDF (`crates/foliark-engine/tests/cmaps.rs`), packed-package browser specs in 3 engines (`tests/browser/cmaps.spec.ts`) | `ASSET_LOAD_FAILED` at `open` for a missing or corrupt pack file; `CMAP_MISSING` for a name outside the predefined set; the pack must be served or copied by the caller (`docs/deployment.md`) | text redaction/edit on mixed-length encodings (RKSJ, EUC, UTF16): `FONT_UNSUPPORTED`; CJK glyphs of a non-embedded font are drawn missing |
|
|
38
|
-
| Paragraph edit | supported for horizontal, unrotated, left-to-right text in a registered or reusable font | `docs/adr/0003`, `0004`, `0005`, `0011`, `0012`, `0013`, `0015` (wrap limits from page evidence: `maxWrapWidth`, `maxWrapLines`, `EditPreview.wrapWidth`; push-down reports `EditPreview.shift` and `ChangeResult.remap`), `0017` (default font-match families); acceptance scenario E over 80 cases; HDDN adapter NEW-68; opt-in `reflow: 'pushDown'` judged by `tests/oracles/shift.py` on the `push-*` fixtures | `EDIT_NO_FONT`, `EDIT_NO_FIT` (with a `reflow*` feature when push-down cannot move whole units), `EDIT_NO_STYLE`, `EDIT_UNSUPPORTED_SCRIPT` (non-BMP, RTL), `EDIT_ROTATED_TEXT`, `FONT_UNSUPPORTED`, `STALE_REVISION` | CFF/Type1 embedded faces, RTL, CJK, vertical, auto-fit (spec 16) |
|
|
38
|
+
| Paragraph edit | supported for horizontal, unrotated, left-to-right text in a registered or reusable font | `docs/adr/0003`, `0004`, `0005`, `0011`, `0012`, `0013`, `0015` (wrap limits from page evidence: `maxWrapWidth`, `maxWrapLines`, `EditPreview.wrapWidth`; push-down reports `EditPreview.shift` and `ChangeResult.remap`), `0017` (default font-match families), `0018` (a file this engine wrote edits again: fresh resource names, an exported registered font never reused; edits read back; `crates/foliark-engine/tests/edit_round_trip.rs`, 3 rounds on fixture `pdflib-type0-subset`); acceptance scenario E over 80 cases; HDDN adapter NEW-68; opt-in `reflow: 'pushDown'` judged by `tests/oracles/shift.py` on the `push-*` fixtures | `EDIT_NO_FONT`, `EDIT_NO_FIT` (with a `reflow*` feature when push-down cannot move whole units), `EDIT_NO_STYLE`, `EDIT_UNSUPPORTED_SCRIPT` (non-BMP, RTL), `EDIT_ROTATED_TEXT`, `FONT_UNSUPPORTED`, `STALE_REVISION` | CFF/Type1 embedded faces, RTL, CJK, vertical, auto-fit (spec 16) |
|
|
39
39
|
| Native export (sanitized rewrite) | supported | `strict-native.md`: 39 fixtures, 31 supported + 8 refused, 0 skipped, independent oracles, negative controls caught; acceptance 80 cases x 6 scenarios | `FORM_APPEARANCE_MISSING`, `XFA_UNSUPPORTED`, `OPTIONAL_CONTENT_UNSUPPORTED`, `SIGNED_INPUT` (policy `refuse`), `REDACT_*`, `STALE_PLAN`, `PLAN_CONSUMED` | what sections 3 and 4 list |
|
|
40
40
|
| Raster export (image-only, redactions burned in) | supported; needs `policy.raster.acknowledgeLosses` | acceptance: 143 SAFE + 17 refused raster results; `comparison.md` (30 pages, 10 regions, 0 words in the regions) | `CONSENT_REQUIRED`, `RENDER_INCOMPLETE {pages}` (3 acceptance cases, annotation-comment pinned by NEW-56) | encrypted raster fidelity; edge pixels touching a region are checked with a 0.26 pt inset |
|
|
41
41
|
| Cancellation | supported before an operation starts; results of aborted operations are atomic | acceptance: 27 attempts, finals byte-equal to a clean run | `CANCELLED` | abort while an operation runs through the packed SDK (only 3 pre-aborted attempts ended `CANCELLED`) |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zilijonas/foliark",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "Rust/WebAssembly PDF SDK for the browser: extract text, render, edit, redact and sanitize PDFs offline. A PyMuPDF alternative. AGPL-3.0.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "AGPL-3.0-only",
|
|
Binary file
|