@libresign/pdf-elements 0.1.2 → 0.2.1
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 +14 -12
- package/dist/pdf-elements.common.js +1408 -1365
- package/dist/pdf-elements.common.js.map +1 -1
- package/dist/pdf-elements.css +1 -1
- package/dist/pdf-elements.umd.js +1408 -1365
- package/dist/pdf-elements.umd.js.map +1 -1
- package/dist/pdf-elements.umd.min.js +2 -2
- package/dist/pdf-elements.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/PDFElements.vue +42 -0
- package/src/index.js +6 -0
- package/src/utils/asyncReader.js +4 -0
package/README.md
CHANGED
|
@@ -13,18 +13,19 @@ A Vue 2 component for rendering PDFs with draggable and resizable element overla
|
|
|
13
13
|
|
|
14
14
|
### Props
|
|
15
15
|
|
|
16
|
-
| Prop | Type | Default |
|
|
17
|
-
|
|
18
|
-
| `width` | String | `'100%'` |
|
|
19
|
-
| `height` | String | `'100%'` |
|
|
20
|
-
| `initFiles` | Array | `[]` |
|
|
21
|
-
| `initFileNames` | Array | `[]` |
|
|
22
|
-
| `initialScale` | Number | `1` |
|
|
23
|
-
| `showPageFooter` | Boolean | `true` |
|
|
24
|
-
| `hideSelectionUI` | Boolean | `false` |
|
|
25
|
-
| `showSelectionHandles` | Boolean | `true` |
|
|
26
|
-
| `showElementActions` | Boolean | `true` |
|
|
27
|
-
| `pageCountFormat` | String | `'{currentPage} of {totalPages}'` |
|
|
16
|
+
| Prop | Type | Default | Description |
|
|
17
|
+
|------|------|---------|-------------|
|
|
18
|
+
| `width` | String | `'100%'` | Container width |
|
|
19
|
+
| `height` | String | `'100%'` | Container height |
|
|
20
|
+
| `initFiles` | Array | `[]` | PDF files to load |
|
|
21
|
+
| `initFileNames` | Array | `[]` | Names for the PDF files |
|
|
22
|
+
| `initialScale` | Number | `1` | Initial zoom scale |
|
|
23
|
+
| `showPageFooter` | Boolean | `true` | Show page footer with document name and page number |
|
|
24
|
+
| `hideSelectionUI` | Boolean | `false` | Hide selection handles and actions UI |
|
|
25
|
+
| `showSelectionHandles` | Boolean | `true` | Show resize/move handles on selected elements |
|
|
26
|
+
| `showElementActions` | Boolean | `true` | Show action buttons on selected elements |
|
|
27
|
+
| `pageCountFormat` | String | `'{currentPage} of {totalPages}'` | Format string for page counter |
|
|
28
|
+
| `autoFitZoom` | Boolean | `false` | Automatically adjust zoom to fit viewport on window resize |
|
|
28
29
|
|
|
29
30
|
### Events
|
|
30
31
|
|
|
@@ -35,3 +36,4 @@ A Vue 2 component for rendering PDFs with draggable and resizable element overla
|
|
|
35
36
|
- `element-{type}` - Custom element rendering (e.g., `element-signature`)
|
|
36
37
|
- `custom` - Fallback for elements without specific type
|
|
37
38
|
- `actions` - Custom action buttons
|
|
39
|
+
|