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

Set logo and watermark on landscape pdf slips.

Location:
main/waeup.aaue/trunk/src/waeup/aaue
Files:
2 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
  • main/waeup.aaue/trunk/src/waeup/aaue/students/browser.py

    r10480 r10566  
    2626    CourseTicketAddFormPage,
    2727    StudyLevelDisplayFormPage,
     28    ExportPDFTranscriptPage,
    2829    )
    2930from kofacustom.nigeria.students.browser import (
     
    162163            omit_fields=self.omit_fields
    163164            )
     165
     166class CustomExportPDFTranscriptPage(ExportPDFTranscriptPage):
     167    """Deliver a PDF slip of the context.
     168    """
     169
     170    def _sigsInFooter(self):
     171        return []
     172
     173    def _signatures(self):
     174        return ([(
     175            'A.O Esekigbe <br /> Deputy Registrar  <br /> '
     176            'Exams, Records And Data <br /> For: Registrar')],)
Note: See TracChangeset for help on using the changeset viewer.