Closed crabouif closed 2 years ago
Sorry I found my self mistake:
As described in your demo, I just added the viewerId
and it works.
<div class="pdf-viewer">
<ng2-pdfjs-viewer #pdfViewer
[locale]="locale"
[viewBookmark]="false"
viewerId="MyUniqueID"
[openFile]="false"
[fullScreen]="false"
(onAfterPrint)="onAfterPrint($event)"
[print]="true">
</ng2-pdfjs-viewer>
</div>
Hy,
I want to start printing of PDF document from an own button (stylized). So for that I hidden the default print button in tool bar
[print]="false"
and I start manually the printing with my button by reloading PDF withstartPrint
option:But in this case, the
onAfterPrint
event is not triggered. Do you hanve any idea ?Thanks a lot for great job !