Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Printing a PDF file, adds an extra blank page at the end #4041

Closed
frapell opened this issue Dec 17, 2013 · 8 comments
Closed

Printing a PDF file, adds an extra blank page at the end #4041

frapell opened this issue Dec 17, 2013 · 8 comments
Labels

Comments

@frapell
Copy link

frapell commented Dec 17, 2013

When printing a PDF file using the PDF.js viewer, it will come with an extra blank page at the end.

Steps to reproduce:

  1. Go to the PDF.js demo page
  2. Open a test file with 2 pages (you can use this one http://www.filedropper.com/test_20 )
  3. Click print, and either print to a file, or print with a printer

The result will be pages 1 and 2 correct, and an extra blank third page

@clone1018
Copy link

We're also experiencing this issue.

We're using:
PDFJS version "1.0.937"
Firefox: 36.0.4

@filipecmartins
Copy link

Hi,

I'm also experiencing this issue.

Any clue?

@jsonn
Copy link

jsonn commented Sep 1, 2015

I'm seeing this as well. Online example for me is http://www.fpdf.org/en/script/ex36.pdf.
Modifying the document by hand to reduce the media box to a height of at most 841pt makes it work. This makes me wonder where the 1pt is getting lost...

@Rob--W
Copy link
Member

Rob--W commented Sep 1, 2015

Confirmed the bug of @jsonn in Firefox. It does not happen with the PDF.js viewer in Chrome.

@shaunfreeman
Copy link

I can confirm that this is still happening in 43.0.4.
A workaround I did to stop this was to make my A4 PDFs have a height of 841pt.
The official dimensions of A4 are 8.27in x 11.69in, which actually comes to 595.44pt x 841.68pt

@timvandermeij
Copy link
Contributor

Closing as fixed by #7005.

@giordy
Copy link

giordy commented Aug 4, 2016

The problem is still present in Firefox 48 on Fedora 24 x86_64.

  • If I print a PDF containing 1 page only, at the end the printer outputs one extra white page.
  • If I ask for 2 copies of a PDF containing 1 page only, I get 1 white page at the end of the first copy and 1 white page at the end of the second copy.

@jsonn
Copy link

jsonn commented Aug 4, 2016

The problem is indeed fixed in pdf.js, but for whatever reason, the copy in Firefox is outdated.

@mozilla mozilla deleted a comment from infosecliqin Jul 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

8 participants