ng2-pdfjs-viewer onDocumentLoad not triggered

528 Views Asked by At

I need to run a method when the pdf document is loaded. But the onDocumentLoad callback is not getting triggered. I'm rendering the pdf in the same window.

<div id="viewer">
    <ng2-pdfjs-viewer #pdfViewer viewerId="viewerId" (onDocumentLoad)="documentLoaded($event)" [showSpinner]="showSpinner"></ng2-pdfjs-viewer>    
</div>
0

There are 0 best solutions below