Ignore:
Timestamp:
30 Aug 2013, 05:24:05 (11 years ago)
Author:
Henrik Bettermann
Message:

Set logo and watermark on landscape pdf slips.

File:
1 edited

Legend:

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

    r10297 r10566  
    2121
    2222import os
    23 from waeup.kofa.browser.pdf import PDFCreator
     23from waeup.kofa.browser.pdf import PDFCreator, LandscapePDFCreator
    2424
    2525class CustomPDFCreator(PDFCreator):
     
    3535    logo_pos = [500, 708, 60]
    3636
     37class CustomLandscapePDFCreator(LandscapePDFCreator):
     38    """A utility to help with generating PDF docs in
     39    landscape format.
     40    """
     41
     42    header_logo_path = os.path.join(
     43        os.path.dirname(__file__), 'static', 'pdf_logo.jpg')
     44    watermark_path = os.path.join(
     45        os.path.dirname(__file__), 'static', 'pdf_watermark.jpg')
     46
     47    watermark_pos = [200, 55]
     48    logo_pos = [750, 465, 60]
     49
Note: See TracChangeset for help on using the changeset viewer.