[reportlab-users] CMYK colours with & > < characters or superscripts in Paragraph

Robin Becker robin at reportlab.com
Mon Oct 31 06:53:09 EST 2005


Michael Richdale wrote:
> I am generating a PDF document that contains Paragraphs that are CMYK
> but any paragraph that contains &<> or superscript seem to revert back
> to RGB, has anyone else come across this? Below is a simple script to
> reproduce the problem.
>  
> (I am running Python 2.4.1 on FreeBSD and with the latest version of
> reportlab checked out of subversion)
>  
> Thanks
>  
> Mike
>  
.....

OK I have fixed this in svn. Seems the Textobject was using its own version of 
colour setting and was a bit wrong. I have abstracted the pdf color setting ops 
into a separate mixin class which is now inhertited by both Canvas and Textobject.
-- 
Robin Becker


More information about the reportlab-users mailing list