Changeset 8092
- Timestamp:
- 10 Apr 2012, 12:24:06 (13 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/browser
- Files:
-
- 2 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/browser/pdf.py
-
Property
svn:keywords
set to
Id
r8091 r8092 80 80 grok.implements(IPDFCreator) 81 81 82 header_logo_path = os.path.join(83 os.path.dirname(__file__), 'static', 'pdf_logo.jpg')84 watermark_p ath = os.path.join(85 os.path.dirname(__file__), 'static', 'pdf_watermark.jpg')82 watermark_path = None 83 header_logo_path = None 84 watermark_pos = [0, 0] 85 logo_pos = [0, 0, 0] 86 86 87 87 @classmethod … … 238 238 if self.watermark_path is not None: 239 239 canvas.saveState() 240 canvas.drawImage(self.watermark_path, 26, 100) 240 canvas.drawImage(self.watermark_path, 241 self.watermark_pos[0], self.watermark_pos[1]) 241 242 canvas.restoreState() 242 243 … … 250 251 canvas.line(1.5*cm,height-1.9*cm,width-1.5*cm,height-1.7*cm) 251 252 if self.header_logo_path is not None: 252 canvas.drawImage(self.header_logo_path, 507, 170, width=40, 253 preserveAspectRatio=True, anchor='ne') 253 canvas.drawImage(self.header_logo_path, 254 self.logo_pos[0], self.logo_pos[1], width=self.logo_pos[2], 255 preserveAspectRatio=True, anchor='ne') 254 256 255 257 # Title -
Property
svn:keywords
set to
Note: See TracChangeset for help on using the changeset viewer.