From 30c06849d81358c0372abcdb5b741e931a60cd00 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Fri, 19 Mar 2021 12:27:23 +0100 Subject: [PATCH] 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. --- extensions/chromium/preferences_schema.json | 2 +- web/app_options.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/chromium/preferences_schema.json b/extensions/chromium/preferences_schema.json index de2ae62df..b88a5dc4b 100644 --- a/extensions/chromium/preferences_schema.json +++ b/extensions/chromium/preferences_schema.json @@ -173,7 +173,7 @@ "title": "Automatically rotate printed pages", "description": "When enabled, landscape pages are rotated when printed.", "type": "boolean", - "default": false + "default": true }, "scrollModeOnLoad": { "title": "Scroll mode on load", diff --git a/web/app_options.js b/web/app_options.js index 72ad6d091..9a91ab697 100644 --- a/web/app_options.js +++ b/web/app_options.js @@ -62,7 +62,7 @@ const defaultOptions = { }, enablePrintAutoRotate: { /** @type {boolean} */ - value: false, + value: true, kind: OptionKind.VIEWER + OptionKind.PREFERENCE, }, enableScripting: {