Ignore:
Timestamp:
29 Aug 2013, 09:49:08 (11 years ago)
Author:
Henrik Bettermann
Message:

Let's preset the pagesize too.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/pdf.py

    r10333 r10554  
    804804
    805805    def create_pdf(self, data, headerline=None, title=None, author=None,
    806                    footer='', note=None, sigs_in_footer=[], topMargin=1.5):
     806                   footer='', note=None, sigs_in_footer=[], topMargin=1.5,
     807                   pagesize=portrait(A4)):
    807808        """Returns a binary data stream which is a PDF document.
    808809        """
     
    814815            topMargin=topMargin*inch,
    815816            title=title,
    816             pagesize=portrait(A4),
     817            pagesize=pagesize,
    817818            showBoundary=False,
    818819            )
Note: See TracChangeset for help on using the changeset viewer.