@shznet/pdf-sign-standalone 0.2.0 → 0.2.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 +15 -14
- package/dist/index.js +395 -294
- package/package.json +12 -1
package/README.md
CHANGED
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
# @shznet/pdf-sign-standalone
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
This package provides a pre-configured entry point for the `@shznet/pdf-sign` ecosystem.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @shznet/pdf-sign-standalone
|
|
9
|
+
```
|
|
6
10
|
|
|
7
|
-
|
|
11
|
+
## Usage
|
|
8
12
|
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
<link rel="stylesheet" href="path/to/pdf-sign-standalone.css">
|
|
13
|
+
```typescript
|
|
14
|
+
import { PdfSignControl } from '@shznet/pdf-sign-standalone';
|
|
12
15
|
|
|
13
|
-
|
|
16
|
+
const container = document.getElementById('pdf-root');
|
|
17
|
+
const control = new PdfSignControl({
|
|
18
|
+
container: container,
|
|
19
|
+
viewMode: 'scroll'
|
|
20
|
+
});
|
|
14
21
|
|
|
15
|
-
|
|
16
|
-
// The global variable `PdfSignStandalone` is available
|
|
17
|
-
const container = document.getElementById('pdf-root');
|
|
18
|
-
const app = new PdfSignStandalone.PdfSignControl(container);
|
|
19
|
-
|
|
20
|
-
app.init('https://example.com/sample.pdf');
|
|
21
|
-
</script>
|
|
22
|
+
await control.load('https://example.com/doc.pdf');
|
|
22
23
|
```
|
|
23
24
|
|
|
24
25
|
## Versioning
|