intbot / ng2-pdfjs-viewer

An angular component for PDFJS and ViewerJS (Supports all versions of angular)
Apache License 2.0
231 stars 114 forks source link

Print issue in firefox #51

Open SiposGergo opened 5 years ago

SiposGergo commented 5 years ago

Hi, there is an issue with print function in Firefox (version: 70.0.1). When I print pdf, a blank page added to the end of the document.

Reproduction with the demo app: https://ng2-pdfjs-viewer.azurewebsites.net/home Error occurs on the 'simple configuration' page. Other pages work correctly.

codehippie1 commented 5 years ago

@SiposGergo Would you be able to try this in PDFJs's demo page and report the results?

https://mozilla.github.io/pdf.js/web/viewer.html

SiposGergo commented 5 years ago

@codehippie1 I tried to print the document on the linked page and it worked properly with Firefox. No extra blank page was added to the end of the document.

codehippie1 commented 4 years ago

Seems to be an issue with pdfjs - https://github.com/mozilla/pdf.js/issues/8849

Will check and see if a new version is available with the fix.

pgsrw commented 4 years ago

Hi, we have expirienced the same problem. Maybe in context with letter and A4 ? The minimalistic has A4 and in the other example there is the height smaller then 297mm. Would be great if the issue will be solved.

bluewis777 commented 4 years ago

facing the same issue using pdfjs 2.4.456 and firefox 83.0 (64-bit). had to hide the print button as a workaround