Ignore:
Timestamp:
21 Dec 2015, 21:41:28 (9 years ago)
Author:
Henrik Bettermann
Message:

Render second logo on Akoka application slips.

Location:
main/waeup.uniben/trunk/src/waeup/uniben/browser
Files:
1 added
1 deleted
1 edited

Legend:

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

    r8204 r13558  
    2121
    2222import os
     23import grok
    2324from waeup.kofa.browser.pdf import PDFCreator
    2425
     
    3435    watermark_pos = [-25, 100]
    3536    logo_pos = [507, 720, 40]
     37
     38
     39class AkokaPDFCreator(PDFCreator):
     40
     41    grok.name('akoka_pdfcreator')
     42
     43    watermark_path = os.path.join(
     44        os.path.dirname(__file__), 'static', 'pdf_watermark.jpg')
     45
     46    watermark_pos = [-25, 100]
     47
     48    # right (default) logo
     49    header_logo_path = os.path.join(
     50        os.path.dirname(__file__), 'static', 'pdf_logo.jpg')
     51
     52    logo_pos = [507, 720, 40]
     53
     54    # left logo
     55    header_logo_left_path = os.path.join(
     56        os.path.dirname(__file__), 'static', 'pdf_logo_akoka.jpg')
     57
     58    logo_left_pos = [50, 680, 30]
Note: See TracChangeset for help on using the changeset viewer.