alyf-de/erpnext_druckformate

Big margin at the bottom causing premature page break

Closed this issue · 0 comments

The bottom margin is really big, to make space for the footer. Somehow the margin is much bigger than the footer: text breaks to the next page way above the footer.

Reproduce

  • Create an invoice with multiple items and/or a longer text in the terms field, so that the PDF spans multiple pages.
  • Note the excessive whitespace at the bottom of the first pages

Goal

All available whitespace on the page is used. Avoid unnecessary whitespace at the bottom of pages (for multi-page documents).

Things tried so far

Simply decreasing the margin doesn't help, because it pushes the footer off the page.