From fed9450c26e354ebbe714f50f0ed2d6705404ec3 Mon Sep 17 00:00:00 2001 From: Vitor Mattos Date: Tue, 16 Jan 2024 20:29:13 -0300 Subject: [PATCH 1/2] Add event on end init Signed-off-by: Vitor Mattos --- src/VuePdfEditor.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/VuePdfEditor.vue b/src/VuePdfEditor.vue index 2ee3c3a..3505154 100644 --- a/src/VuePdfEditor.vue +++ b/src/VuePdfEditor.vue @@ -389,6 +389,11 @@ export default { this.narrowEnlargeShow = true this.initTextField() await this.initImages() + this.$emit('pdf-editor:end-init', { + allObjects: this.allObjects, + numPages: this.numPages, + pages: this.pages, + }) } catch (e) { console.log(e) } From 8ae2678b38974b326b3705c53a673fff71b33460 Mon Sep 17 00:00:00 2001 From: Vitor Mattos Date: Tue, 16 Jan 2024 20:31:19 -0300 Subject: [PATCH 2/2] Bump version Signed-off-by: Vitor Mattos --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 47cc608..3be1baf 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@libresign/vue-pdf-editor", "description": "vue2 pdf editor component", - "version": "1.2.1", + "version": "1.2.2", "author": "LibreCode", "private": false, "main": "dist/vue-pdf-editor.umd.js",