Skip to content

Commit

Permalink
set page_break_difference optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Anne Maier committed Jan 14, 2025
1 parent 4411136 commit d6bbaab
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pyramid_oereb/contrib/print_proxy/mapfish_print/toc_pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ def __init__(self, extract):
# 842: regular A4 page size in px
# inlcude adjustable buffer, taking a earlier page break of MPF
# into consideration for unknown reasons
self.total_height = 842 - print_config.get('page_break_difference')
page_break_difference = 10
if print_config.get('page_break_difference') is not None:
page_break_difference = print_config.get('page_break_difference')
self.total_height = 842 - page_break_difference
self.header_height = self.compute_header()
self.footer_height = self.compute_footer()
self.disposable_height = (
Expand Down

0 comments on commit d6bbaab

Please sign in to comment.