Ignore:
Timestamp:
24 May 2019, 16:22:09 (6 years ago)
Author:
Henrik Bettermann
Message:

Show logo also on landscape slips.

File:
1 edited

Legend:

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

    r13560 r15425  
    2222import os
    2323import grok
    24 from waeup.kofa.browser.pdf import PDFCreator
     24from waeup.kofa.browser.pdf import PDFCreator, LandscapePDFCreator
    2525
    2626class CustomPDFCreator(PDFCreator):
     
    3535    watermark_pos = [-25, 100]
    3636    logo_pos = [507, 720, 40]
     37
     38
     39class CustomLandscapePDFCreator(LandscapePDFCreator):
     40    """A utility to help with generating PDF docs in
     41    landscape format. No watermark is shown.
     42    """
     43
     44    header_logo_path = os.path.join(
     45        os.path.dirname(__file__), 'static', 'pdf_logo.jpg')
     46    #watermark_path = os.path.join(
     47    #    os.path.dirname(__file__), 'static', 'pdf_watermark.jpg')
     48
     49    #watermark_pos = [200, 55]
     50    logo_pos = [750, 480, 45]
    3751
    3852
Note: See TracChangeset for help on using the changeset viewer.