@libresign/pdf-elements 0.1.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 ADDED
@@ -0,0 +1,37 @@
1
+ <!--
2
+ SPDX-FileCopyrightText: 2026 LibreCode coop and contributors
3
+ SPDX-License-Identifier: AGPL-3.0-or-later
4
+ -->
5
+
6
+ # PDF Elements
7
+
8
+ A Vue 2 component for rendering PDFs with draggable and resizable element overlays.
9
+
10
+ **[Demo](https://libresign.github.io/pdf-elements/)** · [Examples](examples/)
11
+
12
+ ## API
13
+
14
+ ### Props
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}'` |
28
+
29
+ ### Events
30
+
31
+ - `pdf-elements:end-init` - Emitted when PDF is loaded
32
+
33
+ ### Slots
34
+
35
+ - `element-{type}` - Custom element rendering (e.g., `element-signature`)
36
+ - `custom` - Fallback for elements without specific type
37
+ - `actions` - Custom action buttons
package/dist/demo.html ADDED
@@ -0,0 +1 @@
1
+ <!doctype html><meta charset="utf-8"><title>pdf-elements demo</title><script src="./pdf-elements.umd.js"></script><link rel="stylesheet" href="./pdf-elements.css"><script>console.log(pdf-elements)</script>