Changeset 15425 for main/waeup.uniben
- Timestamp:
- 24 May 2019, 16:22:09 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/browser/pdf.py
r13560 r15425 22 22 import os 23 23 import grok 24 from waeup.kofa.browser.pdf import PDFCreator 24 from waeup.kofa.browser.pdf import PDFCreator, LandscapePDFCreator 25 25 26 26 class CustomPDFCreator(PDFCreator): … … 35 35 watermark_pos = [-25, 100] 36 36 logo_pos = [507, 720, 40] 37 38 39 class CustomLandscapePDFCreator(LandscapePDFCreator): 40 """A utility to help with generating PDF docs in 41 landscape format. No watermark is shown. 42 """ 43 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') 48 49 #watermark_pos = [200, 55] 50 logo_pos = [750, 480, 45] 37 51 38 52
Note: See TracChangeset for help on using the changeset viewer.