Changeset 14495 for main/waeup.kofa/trunk/src/waeup/kofa/browser
- Timestamp:
- 2 Feb 2017, 07:58:49 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/browser/pdf.py
r14135 r14495 29 29 from reportlab.lib import colors 30 30 from reportlab.lib.units import cm, inch, mm 31 from reportlab.lib.pagesizes import A4, landscape, portrait31 from reportlab.lib.pagesizes import A4, A3, landscape, portrait 32 32 from reportlab.lib.styles import getSampleStyleSheet, ParagraphStyle 33 33 from reportlab.pdfgen.canvas import Canvas … … 858 858 pagesize = landscape(A4) 859 859 860 class A3LandscapePDFCreator(LandscapePDFCreator): 861 """A utility to help with generating PDF docs in 862 A3 landscape format. No watermark is shown. 863 """ 864 grok.name('A3landscape') 865 pagesize = landscape(A3) 866 860 867 def get_qrcode(text, width=60.0): 861 868 """Get a QR Code as Reportlab Flowable (actually a `Drawing`).
Note: See TracChangeset for help on using the changeset viewer.