655d7ab678d93abcdfb7d9457798337043cbf06d
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) 
Bernd Wurst Änderung der Adresse und al...

Bernd Wurst authored 7 years ago

5) address_header = 'schokokeks.org · Köchersberg 32 · 71540 Murrhardt'
Bernd Wurst Break long address-lines

Bernd Wurst authored 15 years ago

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 Bankverbindung nicht mehr Fett

Bernd Wurst authored 14 years ago

31)   canvas.setFont(font, 7)
Bernd Wurst SEPA-Umstellung

Bernd Wurst authored 10 years ago

32)   canvas.drawString(leftcontent+((rightcontent-leftcontent)/3)*2, bottomcontent-10, 'Volksbank Backnang')
Bernd Wurst BLZ und Kontonummer wieder...

Bernd Wurst authored 10 years ago

33)   canvas.drawString(leftcontent+((rightcontent-leftcontent)/3)*2, bottomcontent-20, 'IBAN: DE91 6029 1120 0041 5120 06')
Bernd Wurst SEPA-Umstellung

Bernd Wurst authored 10 years ago

34)   canvas.drawString(leftcontent+((rightcontent-leftcontent)/3)*2, bottomcontent-30, 'BIC: GENODES1VBK')
Bernd Wurst Darstellungsfehler gefixed

Bernd Wurst authored 7 years ago

35)   canvas.drawString(leftcontent+((rightcontent-leftcontent)/3)*2, bottomcontent-40, '(Kto: 41512 006 / BLZ: 602 911 20)')
Bernd Wurst Trennung von Firmen-spezifi...

Bernd Wurst authored 16 years ago

36) 
37) 
38) def basicPage(canvas):
39)   FoldingMarkers(canvas)
40)   Footer(canvas)
41)   return topcontent
42) 
43) 
44) def firstPage(canvas):
45)   basicPage(canvas)
46) 
47)   font_size = default_font_size
48)   y = topcontent
49)   canvas.drawInlineImage("logo.png", rightcolumn, topcontent-(3*cm), width=4.08*cm, height=3*cm)
50)   y -= (3.5*cm)
51)   canvas.setFont(font+"-Bold", font_size)
52)   #canvas.drawString(rightcolumn, y, "schokokeks.org Webhosting")
53)   #y -= (font_size + 5 + 0.2*cm)
54)   canvas.drawString(rightcolumn, y, "schokokeks.org GbR")
55)   y -= (font_size + 5)
56)   canvas.setFont(font, font_size)
57)   canvas.drawString(rightcolumn, y, "Bernd Wurst / Johannes Böck")
58)   y -= (font_size + 5)
Bernd Wurst Änderung der Adresse und al...

Bernd Wurst authored 7 years ago

59)   canvas.drawString(rightcolumn, y, "Köchersberg 32")