File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,40 +31,9 @@ A Vue 2 component for rendering PDFs with draggable and resizable element overla
3131
3232- ` pdf-elements:end-init ` - Emitted when PDF is loaded
3333
34- ### Methods
35-
36- - ` adjustZoomToFit() ` - Manually trigger zoom adjustment to fit viewport (useful when calling programmatically)
37-
3834### Slots
3935
4036- ` element-{type} ` - Custom element rendering (e.g., ` element-signature ` )
4137- ` custom ` - Fallback for elements without specific type
4238- ` actions ` - Custom action buttons
4339
44- ### Usage Example
45-
46- ``` vue
47- <template>
48- <PDFElements
49- ref="pdfElements"
50- :init-files="pdfFiles"
51- :init-file-names="['document.pdf']"
52- :auto-fit-zoom="true"
53- @pdf-elements:end-init="onPdfLoaded"
54- >
55- <template #element-signature="{ object, onDelete }">
56- <CustomSignature :data="object" @delete="onDelete" />
57- </template>
58- </PDFElements>
59- </template>
60-
61- <script>
62- export default {
63- methods: {
64- onPdfLoaded() {
65- // PDF is loaded, auto-fit zoom is active
66- },
67- },
68- }
69- </script>
70- ```
You can’t perform that action at this time.
0 commit comments