From 97abd794e30cb1907d55b77e7dad4d76f7a4d856 Mon Sep 17 00:00:00 2001 From: Reto Tschuppert <124258444+Tschuppi81@users.noreply.github.com> Date: Fri, 30 Aug 2024 11:54:52 +0200 Subject: [PATCH] Winterthur: Force landscape mode for shift schedule image TYPE: Bugfix LINK: ogc-1809 --- src/onegov/winterthur/app.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/onegov/winterthur/app.py b/src/onegov/winterthur/app.py index 0149e9ce4b..44a1970738 100644 --- a/src/onegov/winterthur/app.py +++ b/src/onegov/winterthur/app.py @@ -167,6 +167,11 @@ def get_shift_schedule_image(self) -> BytesIO | None: '-sDEVICE=png16m', f'-sOutputFile={path / "preview.png"}', + # force landscape orientation in postscript + '-c', + '<> setpagedevice', + '-f', + # from pdf str(path / 'input.pdf') ))