Changeset 10565 for main/waeup.kofa/trunk/src/waeup/kofa/browser
- Timestamp:
- 30 Aug 2013, 05:10:32 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/browser/pdf.py
r10554 r10565 540 540 logo_pos = [0, 0, 0] 541 541 logo_left_pos = [0, 0, 0] 542 pagesize = portrait(A4) 542 543 543 544 @classmethod … … 804 805 805 806 def create_pdf(self, data, headerline=None, title=None, author=None, 806 footer='', note=None, sigs_in_footer=[], topMargin=1.5, 807 pagesize=portrait(A4)): 807 footer='', note=None, sigs_in_footer=[], topMargin=1.5): 808 808 """Returns a binary data stream which is a PDF document. 809 809 """ … … 815 815 topMargin=topMargin*inch, 816 816 title=title, 817 pagesize= pagesize,817 pagesize=self.pagesize, 818 818 showBoundary=False, 819 819 ) … … 835 835 pdf_stream.close() 836 836 return result 837 838 class LandscapePDFCreator(PDFCreator): 839 """A utility to help with generating PDF docs in 840 landscape format. 841 """ 842 grok.name('landscape') 843 pagesize = landscape(A4)
Note: See TracChangeset for help on using the changeset viewer.