Reputation: 37
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>
Upvotes: 0
Views: 634