I'm developing a pdfviewer in Angular 5. My html page looks like this:
pdf content is showed using canvas element. Below snippet is for print button.
<button (click)="print()" title="Print" >
<span data-l10n-id="print_label">Print</span>
</button>
print(){
window.print();
}
When I click it is printing whole page right now.Like bolow:
I want to print only pdf content instead of whole hmtl page. Is there any way to do that?
Thanks inadvance!!