68bb014f6728038e8aabd05e369f132bdd070181
Bernd Wurst Trennung von Firmen-spezifi...

Bernd Wurst authored 16 years ago

1) # -* coding: utf8 *-
2) from metrics import *
3) 
Bernd Wurst Break long address-lines

Bernd Wurst authored 15 years ago

4) 
5) address_header = 'schokokeks.org · Köchersberg 25 · 71540 Murrhardt'
6) 
7) 
Bernd Wurst Trennung von Firmen-spezifi...

Bernd Wurst authored 16 years ago

8) def FoldingMarkers(canvas):
9)   """Setzt Falzmarken"""
10)   from reportlab.lib.units import cm
11)   canvas.setStrokeColorRGB(0,0,0)
12)   canvas.setLineWidth(0.01*cm)
13)   canvas.lines(
14)    [(0.3*cm,page_height-10.5*cm,0.65*cm,page_height-10.5*cm),
15)     (0.3*cm,page_height-21.0*cm,0.65*cm,page_height-21.0*cm),
16)     (0.3*cm,page_height-14.85*cm,0.7*cm,page_height-14.85*cm)]);
17) 
18) 
19) def Footer(canvas):
20)   canvas.line(leftcontent, bottomcontent, rightcontent, bottomcontent)
21)   canvas.setFont(font, 7)
22)   canvas.drawString(leftcontent, bottomcontent-10, 'schokokeks.org GbR')
23)   canvas.drawString(leftcontent, bottomcontent-20, 'Bernd Wurst / Johannes Böck')
Bernd Wurst URL ohne http://

Bernd Wurst authored 16 years ago

24)   canvas.drawString(leftcontent, bottomcontent-30, 'www.schokokeks.org')
Bernd Wurst Trennung von Firmen-spezifi...

Bernd Wurst authored 16 years ago

25)   canvas.drawString(leftcontent, bottomcontent-40, 'root@schokokeks.org')
26)   
27)   canvas.drawString(leftcontent+((rightcontent-leftcontent)/3), bottomcontent-10, 'Steuernummer 51072/01109')
28)   canvas.drawString(leftcontent+((rightcontent-leftcontent)/3), bottomcontent-20, 'Finanzamt Backnang')
29)   canvas.drawString(leftcontent+((rightcontent-leftcontent)/3), bottomcontent-30, 'USt-ID: DE255720588')
30) 
Bernd Wurst Neue Bankverbindung

Bernd Wurst authored 14 years ago

31)   # Bis 01.10.2010
32)   from reportlab.lib.colors import red, black
33)   canvas.setFillColor(red)
34)   canvas.setFont(font+"-Bold", 10)
35)   canvas.drawString(leftcontent, bottomcontent + 10, "ACHTUNG: Neue Bankverbindung!")
36)   canvas.setFillColor(black)
37)   
Bernd Wurst Bankverbindung nicht mehr Fett

Bernd Wurst authored 14 years ago

38)   canvas.setFont(font, 7)
Bernd Wurst Trennung von Firmen-spezifi...

Bernd Wurst authored 16 years ago

39)   canvas.drawString(leftcontent+((rightcontent-leftcontent)/3)*2, bottomcontent-10, 'Volksbank Backnang (BLZ: 602 911 20)')
Bernd Wurst Neue Bankverbindung

Bernd Wurst authored 14 years ago

40)   canvas.drawString(leftcontent+((rightcontent-leftcontent)/3)*2, bottomcontent-20, 'Konto: 41512 006')
41)   canvas.drawString(leftcontent+((rightcontent-leftcontent)/3)*2, bottomcontent-30, 'IBAN: DE91602911200041512006')