1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 15:18:08 +02:00

Rotate landscape pages, during printing, by default in the viewer (enablePrintAutoRotate = true)

While this will perhaps not be perfect for *every* PDF document with mixed page orientation, based on the large number of bugs/issues seen over the years I'm however pretty convinced that it'll be an overall improvement in a majority of cases.

In order to improve things further, we'd probably need Firefox to support e.g. `@page` such that the viewer can provide better information to the print engine.
This commit is contained in:
Jonas Jenwald 2021-03-19 12:27:23 +01:00
parent 1de466896d
commit 30c06849d8
2 changed files with 2 additions and 2 deletions

View file

@ -62,7 +62,7 @@ const defaultOptions = {
},
enablePrintAutoRotate: {
/** @type {boolean} */
value: false,
value: true,
kind: OptionKind.VIEWER + OptionKind.PREFERENCE,
},
enableScripting: {