Ignore:
Timestamp:
2 Feb 2017, 07:58:49 (8 years ago)
Author:
Henrik Bettermann
Message:

Adjust report components.

File:
1 edited

Legend:

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

    r14135 r14495  
    2929from reportlab.lib import colors
    3030from reportlab.lib.units import cm, inch, mm
    31 from reportlab.lib.pagesizes import A4, landscape, portrait
     31from reportlab.lib.pagesizes import A4, A3, landscape, portrait
    3232from reportlab.lib.styles import getSampleStyleSheet, ParagraphStyle
    3333from reportlab.pdfgen.canvas import Canvas
     
    858858    pagesize = landscape(A4)
    859859
     860class 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
    860867def get_qrcode(text, width=60.0):
    861868    """Get a QR Code as Reportlab Flowable (actually a `Drawing`).
Note: See TracChangeset for help on using the changeset viewer.