[reportlab-users] Transparent fill of shapes

Robin Becker robin at reportlab.com
Wed Apr 9 09:26:18 EDT 2008


Jiří Mikulášek wrote:

> Hello,

>

> I am trying to implement printing of shapefiles to PDF. All is going

> quite nice but now I got

> stuck with the following problem. Our application allows to draw some

> shapes with

> a semitransparent fill and we would like to preserve this ability when printing.

>

> Is this possible with Reportlab (I did not find any evidence of such

> functionality so far,

> but I might have missed something obvious, hopefuly ;-)?

> If not do you know whether someone is working on this? If not are

> there any hints or advice

> how to implement such a feature into Reportlab?

>

> Thank you very much

>

> Jirka Mikulasek

.......

We don't support models other than simple Device GRAY/RGB/CMYK color spaces at
present. There is some support for transparency in images, but I guess you mean
the ability to set the opacity of a fill. So far as I know we can't yet do that.
In PDF we apparently have to create so called Transparency Group XObjects and
use those instead of ordinary objects; that's before all of the color space and
blend function issues.
--
Robin Becker


More information about the reportlab-users mailing list