Ignore:
Timestamp:
1 Oct 2020, 06:54:58 (4 years ago)
Author:
Henrik Bettermann
Message:

Inject signature image into admission letter.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/browser/pdf.py

    r15565 r16263  
    2121
    2222import os
     23from string import Template
    2324from waeup.kofa.browser.pdf import PDFCreator
    2425
     
    3435    watermark_pos = [45, 140]
    3536    logo_pos = [520, 630, 60]
     37
     38    signature_benji_img_path = os.path.join(
     39        os.path.dirname(__file__), 'static', 'benji_signature.png')
     40
     41    def _substitute_markers(self, text):
     42        """
     43        """
     44        text = Template(text)
     45        PDF_SIGNATURES =  {
     46            'signature_benji_img_path': self.signature_benji_img_path,
     47            }
     48        return text.safe_substitute(PDF_SIGNATURES)
Note: See TracChangeset for help on using the changeset viewer.