Open Bug 1919602 Opened 16 days ago Updated 16 days ago

Firefox prints rotated ouptut to CUPS-PDF's "Ledger" page-size target

Categories

(Core :: Printing: Output, defect)

defect

Tracking

()

People

(Reporter: dholbert, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

STR:

  1. On Ubuntu (or similar), install the printer-driver-cups-pdf and system-config-printer packages (the latter one is optional but has nice UI for following steps).
  2. Run system-config-printer and double click the printer called "PDF", and in Printer Options, set Page Size to Ledger, and then click Apply. (You can also optionally set this as your default printer.)
  3. Start Firefox with a fresh profile and visit https://example.org/ (or any site)
  4. Ctrl+P, and choose "PDF" as the Destination (not Firefox's own Save-to-PDF print target.) Notice that the preview shows a short-and-wide page which is nonetheless presented to you as "Portrait" orientation (since it's the native size of the print target).
  5. Click Print, and then look at the resulting file in ~/PDF folder on your file-system.

ACTUAL RESULTS:
I end up with a page that's tall-and-skinny, with the content rotated sideways on it.

EXPECTED RESULTS:
I should end up with a page that's short-and-wide, with the content not-rotated.

Chrome gives EXPECTED RESULTS.

I suspect this has the same root cause as bug 1836028.

Severity: -- → S3

Note that our output is essentially the same as Chrome's except that we're showing the paper as-a-whole as being rotated to be tall-and-skinny.

This makes our tall-and-skinny rendering incorrect for the "Ledger" paper-size (which is natively wider-than-it-is-tall), and I think it leads to a mismatch & clipping if our rendering actually makes it onto physical paper (as in bug 1836028).

(In reply to Daniel Holbert [:dholbert] from comment #0)

STR:

  1. On Ubuntu (or similar), install the printer-driver-cups-pdf and system-config-printer packages (the latter one is optional but has nice UI for following steps).

Side note, I think this bug is testable on other OS's as well (though I haven't tested) by simply sharing this^ PDF printer over the network from Ubuntu and then printing to it as a network-printer from a macOS or Windows system.

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

Attachment

General

Created:
Updated:
Size: