angularjs-pdf icon indicating copy to clipboard operation
angularjs-pdf copied to clipboard

Browser zoom 80% causes PDF background not to be complete

Open cschwaderer opened this issue 6 years ago • 1 comments

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: 229

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: 230

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.

cschwaderer avatar Aug 06 '18 13:08 cschwaderer

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

cschwaderer avatar Aug 08 '18 09:08 cschwaderer