Skip to content

Commit

Permalink
Winterthur: Force landscape mode for shift schedule image
Browse files Browse the repository at this point in the history
TYPE: Bugfix
LINK: ogc-1809
  • Loading branch information
Tschuppi81 committed Aug 30, 2024
1 parent 38afa09 commit 97abd79
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/onegov/winterthur/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
'<</Orientation 3>> setpagedevice',
'-f',

# from pdf
str(path / 'input.pdf')
))
Expand Down

0 comments on commit 97abd79

Please sign in to comment.