diff --git a/src/Pdfvuer.vue b/src/Pdfvuer.vue index 6b74f77..fcdd65e 100644 --- a/src/Pdfvuer.vue +++ b/src/Pdfvuer.vue @@ -21,7 +21,8 @@ DefaultAnnotationLayerFactory, DefaultTextLayerFactory, PDFLinkService, - PDFPageView + PDFPageView, + EventBus } from 'pdfjs-dist/web/pdf_viewer.js'; import resizeSensor from 'vue-resize-sensor' @@ -173,6 +174,7 @@ }), textLayerFactory: textLayer, annotationLayerFactory: annotationLayer, + eventBus: new EventBus() }); self.loading = false; self.$emit('loading', false);