Ignore:
Timestamp:
30 Oct 2020, 12:30:21 (4 years ago)
Author:
Henrik Bettermann
Message:

Insert pagebreak before signature tables if necessary (not tested in base package).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py

    r16254 r16291  
    807807                  show_scans=True, topMargin=1.5,
    808808                  omit_fields=(),
    809                   mergefiles=None, watermark=None):
     809                  mergefiles=None, watermark=None,
     810                  pagebreak=False):
    810811        """Render pdf slips for various pages (also some pages
    811812        in the applicants module).
     
    875876        # do not have a test for the following lines.
    876877        if signatures and not sigs_in_footer:
    877             data.append(Spacer(1, 20))
     878            # Insert page break if necessary, else some space
     879            if pagebreak:
     880                data.append(PageBreak())
     881            else:
     882                data.append(Spacer(1, 20))
    878883            # Render one signature table per signature to
    879884            # get date and signature in line.
Note: See TracChangeset for help on using the changeset viewer.