angularjs-pdf
angularjs-pdf copied to clipboard
Browser zoom 80% causes PDF background not to be complete
First of all: I'm not sure whether this is an Angular-PDF or PDF.JS issue.
Problem is: If browser zoom is ca. 80% the PDF is not rendered correctly. Consider this PDF: foo.pdf
Normally, it should be rendered like this on a page with red background:
However, if the browser zoom level is set to 80% it will first scale correctly, then, however, after refreshing/reloading the page/browser the view is somehow broken, looking like so:
I've created a Plunker for demonstration, using Angular-PDF and PDF.JS files from the demo on https://sayan.ee/angularjs-pdf/ so to exclude a version problem.
Tested in Chrome and Firefox.
Seems to be a problem of Angular-PDF. At least, I couldn't reproduce it in pure PDF.JS See JSfiddle: https://jsfiddle.net/34axc20j