[reportlab-users] Watermarks?
Michael Hipp
Michael at Hipp.com
Thu Feb 8 07:34:43 EST 2007
Dinu Gherman wrote:
> 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)
Thanks. My brain was working inverted. That does exactly what I need.
Michael
More information about the reportlab-users
mailing list