@embedpdf/plugin-stamp 3.1.0 → 3.2.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/README.md +31 -0
- package/package.json +11 -11
package/README.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<!-- Generated from docs/content/headless/annotations/stamps.mdx by docs/content/scripts/readmes.mjs. Edit there, then run `pnpm readme:sync`. -->
|
|
2
|
+
|
|
3
|
+
# @embedpdf/plugin-stamp
|
|
4
|
+
|
|
5
|
+
Stamps for EmbedPDF: libraries of stamps, placed by click or by code.
|
|
6
|
+
|
|
7
|
+
This plugin comes with each EmbedPDF framework package. Import it from the one you use:
|
|
8
|
+
|
|
9
|
+
| Framework | Import from | Docs |
|
|
10
|
+
| :-------- | :---------- | :--- |
|
|
11
|
+
| React | `@embedpdf/react/stamp` | [Stamps](https://www.embedpdf.com/docs/headless/react/annotations/stamps) |
|
|
12
|
+
| Vue | `@embedpdf/vue/stamp` | [Stamps](https://www.embedpdf.com/docs/headless/vue/annotations/stamps) |
|
|
13
|
+
| Svelte | `@embedpdf/svelte/stamp` | [Stamps](https://www.embedpdf.com/docs/headless/svelte/annotations/stamps) |
|
|
14
|
+
| Angular | `@embedpdf/angular/stamp` | [Stamps](https://www.embedpdf.com/docs/headless/angular/annotations/stamps) |
|
|
15
|
+
|
|
16
|
+
## In React
|
|
17
|
+
|
|
18
|
+
A stamp is artwork you place on a page: "Approved", a company seal, a signature. The stamp plugin
|
|
19
|
+
keeps stamps in **libraries**, arms one for a click, and writes the placed stamp the way Acrobat
|
|
20
|
+
does, so it's the same stamp there.
|
|
21
|
+
|
|
22
|
+
Register `stampPlugin()` next to `annotationPlugin()`, and use `useStamp()`:
|
|
23
|
+
|
|
24
|
+
```ts
|
|
25
|
+
const { library } = await stamp.importLibrary(await loadDefaultLibrary('en'));
|
|
26
|
+
await stamp.armAsset(assetId); // the next click places it
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## License
|
|
30
|
+
|
|
31
|
+
Apache-2.0
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@embedpdf/plugin-stamp",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"private": false,
|
|
5
|
-
"description": "
|
|
5
|
+
"description": "Stamps for EmbedPDF: libraries of stamps, placed by click or by code.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./dist/index.js",
|
|
8
8
|
"module": "./dist/index.js",
|
|
@@ -22,20 +22,20 @@
|
|
|
22
22
|
"dist"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@embedpdf/
|
|
26
|
-
"@embedpdf/core": "3.
|
|
27
|
-
"@embedpdf/
|
|
28
|
-
"@embedpdf/plugin-
|
|
29
|
-
"@embedpdf/plugin-
|
|
30
|
-
"@embedpdf/core
|
|
31
|
-
"@embedpdf/
|
|
25
|
+
"@embedpdf/core": "3.2.0",
|
|
26
|
+
"@embedpdf/core-js-sandbox": "3.2.0",
|
|
27
|
+
"@embedpdf/plugin-form": "3.2.0",
|
|
28
|
+
"@embedpdf/plugin-actions": "3.2.0",
|
|
29
|
+
"@embedpdf/plugin-annotation": "3.2.0",
|
|
30
|
+
"@embedpdf/engine-core": "3.2.0",
|
|
31
|
+
"@embedpdf/core-acrojs": "3.2.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"typescript": "^5.0.0",
|
|
35
35
|
"vitest": "^2.1.9",
|
|
36
36
|
"@embedpdf/tooling-build": "0.0.0",
|
|
37
|
-
"@embedpdf/
|
|
38
|
-
"@embedpdf/
|
|
37
|
+
"@embedpdf/engine": "3.2.0",
|
|
38
|
+
"@embedpdf/default-stamps": "1.0.0"
|
|
39
39
|
},
|
|
40
40
|
"license": "Apache-2.0",
|
|
41
41
|
"sideEffects": false,
|