[reportlab-users] can't draw more then one line on a canvas

Ashley Lloyd ashleylloyd at hotmail.com
Mon Apr 4 09:06:44 EDT 2005


Is it just me or is the second line drawn from one point to exactly the same 
point? Would explain why its only shown as a dot?

Apologies if I'm missing something ....

>From: Timothy Smith <timothy at open-networks.net>
>Reply-To: Support list for users of Reportlab software 
><reportlab-users at reportlab.com>
>To: Support list for users of Reportlab software 
><reportlab-users at reportlab.com>
>Subject: [reportlab-users] can't draw more then one line on a canvas
>Date: Mon, 04 Apr 2005 16:28:03 +1000
>
>how come i can't draw more then on line on my canvas? it makes one line as 
>i expected it to be, but the second is this kind of little mutant line 
>that's more like a dot. the sample below is a snippet of my code.
>
>from reportlab.pdfgen import canvas
>c = canvas.Canvas('tmp.pdf')
>c.lines(c.line(6*cm, 14.7*cm, 10*cm, 14.7*cm),c.line(6*cm, 12.7*cm, 6*cm, 
>12.7*cm))
>c.save()
>_______________________________________________
>reportlab-users mailing list
>reportlab-users at reportlab.com
>http://two.pairlist.net/mailman/listinfo/reportlab-users




More information about the reportlab-users mailing list