Open Bug 1795252 Opened 2 years ago Updated 4 months ago

Print preview for mixed orientation PDFs is confusing

Categories

(Firefox :: PDF Viewer, defect)

defect

Tracking

()

People

(Reporter: marco, Unassigned)

References

(Depends on 1 open bug)

Details

Attachments

(2 files)

To reproduce, try to print https://bugzilla.mozilla.org/attachment.cgi?id=9298595.

The first page is rotated, so it will correctly be landscape on paper, but it is shown vertically in the print preview so it can be confusing.

Depends on: 1795258

After the changes from bug 1820651, the first page is printed portrait, the second page is printed landscape.

Flags: needinfo?(fchasen)
See Also: → 1820651
See Also: → 1795253

Until we can support printing PDFs with different paper sizes, the initial page is the one used to determine the paper size.
First PDF page is now the output size and orientation, but all other pages are rotated to fit that initial orientation.

Flags: needinfo?(fchasen)

Here's another PDF I found that reproduces the issue.

It's got two US-Letter-size pages, with the first being landscape and the second being portrait. But in print preview and Save-to-PDF-print-output, both pages end up in landscape mode (i.e. the second one is rotated which makes it hard to read)

Chrome gives expected-results, showing the first page in landscape mode and the second page in portrait mode, in print preview as well as in save-to-pdf print output.

(In reply to Fred Chasen [:fchasen] from comment #2)

Until we can support printing PDFs with different paper sizes, the initial page is the one used to determine the paper size.

At least for cases like the ones linked here, where the paper size is the same and only the orientation differs: it seems like we could use CSS page-orientation (available since bug 1869880) to rotate the paper on a page-by-page basis to get the expected result.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: