mozilla / pdf.js

PDF Reader in JavaScript
https://mozilla.github.io/pdf.js/
Apache License 2.0
48.34k stars 9.97k forks source link

Extra margin space added in printed version of pdf #6462

Closed stuartkmarsh closed 8 years ago

stuartkmarsh commented 9 years ago

PDF.js with Firefox is adding 0.5cm to the left and top margin and shrinking the page elements PDF.js with Chrome is adding 0.8cm to the top margin - elements are the correct size but are shunted down the page. Tested on Windows, FF 40.0.

timvandermeij commented 9 years ago

Do you have a screenshot? Does it happen with every PDF or just particular ones? In that case, please link one.

stuartkmarsh commented 9 years ago

It's not in the display, it's on the final hard copy after printing.

lszhu commented 9 years ago

I encountered the bug in old versions (v1.0), but the extra margin only add to the top, and accumulate page after page. v1.1.215 is ok in chrome (v44)

stuartkmarsh commented 8 years ago

To update you, we've tested the viewer at https://mozilla.github.io/pdf.js/web/viewer.html, using this file (https://www.dropbox.com/s/6lves3ge8s2u48g/bedcard.pdf?dl=0). It works perfectly in Chrome, and the extra page issue (https://github.com/mozilla/pdf.js/issues/6461#issuecomment-141939466) is also fixed.

However, in Firefox both these issues are still present.

stuartkmarsh commented 8 years ago

Hi, any update on this issue? Is it in the queue to be fixed/tested?

timvandermeij commented 8 years ago

Closing as fixed by #7005.

TomatoJoe commented 5 years ago

Preview-ni-Firefox first window -PDFjs Paper Print preview  (PDF js viewer)

I know this is an old thread but this issue is still causing me grief. We print labels , 4 per sheet this adding anything to the margins of the final print is a critical fault/bug. Now forced to go with the latest vesion of FF due to continuous addon issues. Heres the problem: FF v52.2.1esr Win 7 : Added ~0.5" to Left, Right, Top and Bottom margins. FF v67.0 (latest) Win 7 : Added ~0.5" to Top and Bottom margins FF v67.0 MX Linux : No added margins, however cannot use due to another bug with the Linux version of PDF.js . I have tried/checked:

We are forced to use the FF Preview in FF because there is no Adobe Acrobat Reader plugin sopport since v57. With the old v52.2.1 FF with Acrobat Plugin everything works perfectly.