From 3ce94a9f6d2fa5ca78ca15e09e3775b6f517e9c9 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Fri, 19 Mar 2021 12:09:41 +0100 Subject: [PATCH] Change how landscape pages are rotated, for printing, with `enablePrintAutoRotate = true` set Currently landscape pages are rotated *clockwise*, which for most documents feel wrong since holding the printed pages at their *left* edge causes the landscape pages to be viewed "upside down". In general, since most documents are LTR ones, it feels more appropriate to instead rotate landscape pages *counterclockwise* for printing. --- web/base_viewer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/base_viewer.js b/web/base_viewer.js index a57bd50c5..34f2e796a 100644 --- a/web/base_viewer.js +++ b/web/base_viewer.js @@ -1365,7 +1365,7 @@ class BaseViewer { return { width: size.height, height: size.width, - rotation: (size.rotation + 90) % 360, + rotation: (size.rotation - 90) % 360, }; }); }