edatalia-websign 3.5.2 → 3.5.3
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 +6 -0
- package/README.md +12 -2
- package/dist/web-sign-core.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -132,10 +132,14 @@ WebSign constructor requires **three** parameters:
|
|
|
132
132
|
|
|
133
133
|
You can provide the PDF to WebSign in three formats:
|
|
134
134
|
|
|
135
|
-
1. **HTML file input**
|
|
135
|
+
1. **HTML file input** (single or multiple files)
|
|
136
136
|
|
|
137
137
|
```js
|
|
138
|
-
|
|
138
|
+
// Single file
|
|
139
|
+
const file = input.files[0];
|
|
140
|
+
|
|
141
|
+
// Multiple files (multi-document signing)
|
|
142
|
+
const files = Array.from(input.files);
|
|
139
143
|
```
|
|
140
144
|
|
|
141
145
|
2. **Base64 string**
|
|
@@ -144,6 +148,12 @@ const file = input.files[0]; // can be multi-document
|
|
|
144
148
|
const base64String = "JVBERi0xLjQKJ...";
|
|
145
149
|
```
|
|
146
150
|
|
|
151
|
+
3. **ArrayBuffer**
|
|
152
|
+
|
|
153
|
+
```js
|
|
154
|
+
const arrayBuffer = await fetch("document.pdf").then(r => r.arrayBuffer());
|
|
155
|
+
```
|
|
156
|
+
|
|
147
157
|
|
|
148
158
|
---
|
|
149
159
|
|