[reportlab-users] grayscale documents

Jerome Alet alet at librelogiciel.com
Thu Mar 13 17:29:31 EDT 2008


Hi there,

I'm using RL to generate dynamic banner pages in my PyKota (www.pykota.com)
print accounting software.

These banner pages are currently in color, but I'd like to offer
an option to force grayscale mode.

I'm currently using "canv.setFillColorRGB(r, g, b)" calls.

Should I first convert (r, g, b) to grayscale using
colors.color2bw((r, g, b)) before calling canv.setFillColorRGB() or
is there some special construct which would force the whole document
to be in grayscale mode when rendered ?

Thanks in advance

Jerome Alet


More information about the reportlab-users mailing list