Open Bug 1653794 Opened 4 years ago Updated 4 years ago

allow for printer page orientation to adjust pdf printing rotation

Categories

(Core :: Print Preview, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: mozilla, Unassigned)

References

Details

In https://github.com/mozilla/pdf.js/pull/12023 , I changed pdf.js' enablePrintAutoRotate behavior. Originally we would only rotate landscape pages while printing if the first page was portrait. Now we always rotate landscape pages to portrait before printing. This makes sense as long as our printer page is portrait.

However, if the printer page is landscape, we don't have a solution for automatically rotating portrait pages to landscape. If we were somehow able to detect which orientation the printer pages are, we could compare the pdf page orientation, and rotate if it doesn't match. This is probably the most correct behavior.

I think this is related to print preview, so I'm filing here.

I think bug 851441 (or one of its existing or still-to-be-filed dependencies) will give content (e.g. PDF.js) the ability to request a particular orientation for a given page (or for all of the pages), via CSS Named Pages.

Depends on: 851441

(Also: seems similar to bug 862677; not sure if it's precisely a dupe, but adding to "see also" for now.)

See Also: → 862677
Priority: -- → P3
See Also: → 1662367
You need to log in before you can comment on or make changes to this bug.