[reportlab-users] Watermarks?

Dinu Gherman gherman at darwin.in-berlin.de
Thu Feb 8 07:09:33 EST 2007


Michael Hipp:


> I've tried all this, but the X is still very solid black.

>

> c.setFont("Helvetica-Bold", 200)

> c.setStrokeGray(0.25)

> c.setFillColorRGB(0.1, 0.1, 0.1)

> c.setStrokeColorRGB(0.2,0.5,0.3)

> c.drawCentredString(PAGE_WIDTH/2, 1.0*inch, 'X')


If you haven't found it already: try setFillColorRGB(0.9, 0.9, 0.9).
Higher values are closer to white, lower values closer to black.
Or use something like this directly:

from reportlab.lib.colors import lightgrey
c.setFillColor(lightgrey)

Regards,

Dinu



More information about the reportlab-users mailing list