[reportlab-users] set font colors

Chorny, Ilya ichorny at illumina.com
Wed Jan 25 20:05:45 EST 2012

What about RGB. Is it also decimal range. What is the range?



From: reportlab-users-bounces at lists2.reportlab.com [mailto:reportlab-users-bounces at lists2.reportlab.com] On Behalf Of Chorny, Ilya
Sent: Wednesday, January 25, 2012 2:27 PM
To: reportlab-users at lists2.reportlab.com
Subject: [reportlab-users] set font colors

I am trying to set the font color, for example by

outpdf = canvas.Canvas("analysis_report.pdf",pagesize = letter)
width, height = letter
outpdf.setFont("Helvetica", 10)

but it seems to have no effect on the color. I have tried RGB(187,187,187) and that gives me a blank page. Am I doing something wrong?



Ilya Chorny Ph.D.
Bioinformatics Scientist I
Illumina, Inc.
9885 Towne Centre Drive
San Diego, CA 92121
Work: 858.202.4582
Email: ichorny at illumina.com<mailto:ichorny at illumina.com>
Website: www.illumina.com<http://www.illumina.com>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://two.pairlist.net/pipermail/reportlab-users/attachments/20120126/0df46dc6/attachment.htm>

More information about the reportlab-users mailing list