pdf.js: Auto-rotate for printing does not work

Attach (recommended) or Link to PDF file here: http://www.co.dutchess.ny.us/CountyGov/Departments/StopDWI/DontBlowIt.pdf

Configuration:

  • Web browser and its version: Firefox 57.0.2 (64 bits)
  • Operating system and its version: Arch Linux
  • PDF.js version: 1.9.583
  • Is a browser extension: no (embedded in Firefox)

Steps to reproduce the problem:

  1. Enable pdfjs.enablePrintAutoRotate in about:config.
  2. Open the file.
  3. Open the print preview.
  4. Notice that the landscape pages are not rotated.

What is the expected behavior? (add screenshot) They should be rotated to fill the entire landscape page.

What went wrong? (add screenshot) They are sized onto a portrait page.

Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension):

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 1
  • Comments: 23 (6 by maintainers)

Most upvoted comments

It’s most likely going to be in Firefox 80 which is the currently nightly version.

I have done all the fix issues on the link above and still have the same problem, testing between each step. Here is a pdf I did a search for and used for my testing: http://www.calendarpedia.co.uk/download/weekly/weekly-calendar-2019-landscape-time-management-1-hour.pdf

To clarify, Chrome, Internet Explorer, Edge and the new Edge browsers all autorotate the page so it comes out in landscape as intended, Firefox does not. And the print icon you click to print in the pdf render doesn’t have an option on the initial page to change the orientation you have to dig down to locate it. Most of my users just hit the button and print so there is a lot of wasted paper, the worse of the users I have moved to another browser to stop the whining.

@timvandermeij Is this issue fixed? If not can I work on this?