[reportlab-users] Line width

Christian Junker christianjunker at gmail.com
Fri Mar 11 10:13:15 EST 2005

Hi Robin,
yes I would use the background color if only I would know how to get
the current one.
I didn't find any background color property, neither for the pdf
document as a whole nor for each page or as a property for the canvas.
Do you know how to retrieve the current background color of a page?

On Fri, 11 Mar 2005 10:30:57 +0000, Robin Becker <robin at reportlab.com> wrote:
> Christian Junker wrote:
> > Hi all,
> >
> > I do have a question about the canvas method setLineWidth(n):
> > If I call this function with the argument having a value of 0, it does
> > not really produce a width of 0 (* <whatever unit>) because if I draw
> > lines then they are still visible on the page.
> > How am I able to draw a line that has no actual width?
> > Or in other words:
> > How can I draw an invisible line?
> >
> > I am thankful for any kind of help.
> >
> This is a property of Adobe's renderer. Zero width lines aren't actually zero
> they're the smallest possible width. I don't understand it either. If you know
> the background you could change the line colour, but easiest is to not draw the
> line at all. As a hack you could wrap the various line drawing functions with
> methods that test for zero line width.
> --
> Robin Becker

Best Regards
Christian Junker

More information about the reportlab-users mailing list