@formepdf/core 0.9.0 → 0.9.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/package.json +2 -2
- package/pkg/README.md +15 -1
- package/pkg/forme_bg.wasm +0 -0
- package/pkg/package.json +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@formepdf/core",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.2",
|
|
4
4
|
"description": "WASM-powered PDF rendering engine for Forme",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"test": "vitest run"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@formepdf/react": "0.9.
|
|
51
|
+
"@formepdf/react": "0.9.2"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"react": "^18 || ^19"
|
package/pkg/README.md
CHANGED
|
@@ -50,12 +50,26 @@ fn main() -> Result<(), FormeError> {
|
|
|
50
50
|
|
|
51
51
|
## API
|
|
52
52
|
|
|
53
|
+
### Rendering
|
|
54
|
+
|
|
53
55
|
| Function | Description |
|
|
54
56
|
|----------|-------------|
|
|
55
57
|
| `render(&Document)` | Render a document struct to PDF bytes |
|
|
56
58
|
| `render_json(&str)` | Parse JSON and render to PDF bytes |
|
|
57
|
-
| `render_with_layout(&Document)` | Render and return layout metadata |
|
|
59
|
+
| `render_with_layout(&Document)` | Render and return PDF bytes + layout metadata |
|
|
60
|
+
| `render_json_with_layout(&str)` | Parse JSON, render, and return PDF bytes + layout metadata |
|
|
58
61
|
| `render_template(&str, &str)` | Evaluate a template with data, then render |
|
|
62
|
+
| `render_template_with_layout(&str, &str)` | Evaluate a template with data, render, and return PDF bytes + layout metadata |
|
|
63
|
+
|
|
64
|
+
### PDF Operations
|
|
65
|
+
|
|
66
|
+
| Function | Description |
|
|
67
|
+
|----------|-------------|
|
|
68
|
+
| `merge_pdfs(&[&[u8]])` | Combine multiple PDFs into one |
|
|
69
|
+
| `certify_pdf(&[u8], &str, &str, ...)` | Apply a PKCS#7 digital signature to an existing PDF |
|
|
70
|
+
| `redact_pdf(&[u8], &[RedactionRegion])` | Redact regions from a PDF (removes underlying text) |
|
|
71
|
+
| `redact_text(&[u8], &[TextSearchRedaction])` | Find text by pattern and redact matching regions |
|
|
72
|
+
| `find_text_regions(&[u8], &[TextSearchPattern])` | Find text regions in a PDF without redacting |
|
|
59
73
|
|
|
60
74
|
All functions return `Result<Vec<u8>, FormeError>` (or a tuple with `LayoutInfo` for the `_with_layout` variants).
|
|
61
75
|
|
package/pkg/forme_bg.wasm
CHANGED
|
Binary file
|
package/pkg/package.json
CHANGED