[reportlab-users] carriage return

Kosei Chiwaki chiwaki at gmx.net
Sat Jun 4 22:52:34 EDT 2011


May I know how do I put carriage return into Hello World ?

from reportlab.pdfgen import canvas
from reportlab.lib.units import cm
c = canvas.Canvas("d.pdf")
c.drawString(9*cm, 22*cm, "Hello\nWorld!")
c.showPage()
c.save()
--
NEU: FreePhone - kostenlos mobil telefonieren!
Jetzt informieren: http://www.gmx.net/de/go/freephone


More information about the reportlab-users mailing list