Ignore:
Timestamp:
23 Jan 2017, 09:40:44 (8 years ago)
Author:
Henrik Bettermann
Message:

Hide watermark on customized report slips.

File:
1 edited

Legend:

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

    r14272 r14439  
    3939class CustomLandscapePDFCreator(LandscapePDFCreator):
    4040    """A utility to help with generating PDF docs in
    41     landscape format.
     41    landscape format. No watermark is shown.
    4242    """
    4343
    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')
     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')
    4848
    49     watermark_pos = [200, 55]
    50     logo_pos = [750, 465, 60]
     49    #watermark_pos = [200, 55]
     50    #logo_pos = [750, 465, 60]
    5151
    5252class A3LandscapePDFCreator(LandscapePDFCreator):
    5353    """A utility to help with generating PDF docs in
    54     A3 landscape format.
     54    A3 landscape format. No watermark is shown.
    5555    """
    5656
    5757    grok.name('A3landscape')
    5858
    59     header_logo_path = os.path.join(
    60         os.path.dirname(__file__), 'static', 'pdf_logo.jpg')
    61     watermark_path = os.path.join(
    62         os.path.dirname(__file__), 'static', 'pdf_watermark.jpg')
     59    #header_logo_path = os.path.join(
     60    #    os.path.dirname(__file__), 'static', 'pdf_logo.jpg')
     61    #watermark_path = os.path.join(
     62    #    os.path.dirname(__file__), 'static', 'pdf_watermark.jpg')
    6363
    64     watermark_pos = [360, 150]
    65     logo_pos = [1100, 700, 60]
     64    #watermark_pos = [360, 150]
     65    #logo_pos = [1100, 700, 60]
    6666    pagesize = landscape(A3)
    6767
     68class PlainPDFCreator(PDFCreator):
     69    """A utility to help with generating PDF docs without
     70    watermark.
     71    """
     72
     73    grok.name('plainportrait')
     74
Note: See TracChangeset for help on using the changeset viewer.