[cairo] PDF Transparent Gradients

Adrian Johnson ajohnson at redneon.com
Sun Mar 18 15:21:06 PDT 2007


Jeff Muizelaar wrote:
> On Sun, Mar 18, 2007 at 03:30:40PM +1030, Adrian Johnson wrote:
>> Poppler does not appear to support SMasks. Also, enabling padding with a
>> radial gradient did not pad out the entire rectangle I was filling.
> 
> Poppler should support SMasks. What isn't working?
> 
> -Jeff

I've attached two pdf files containing a linear gradient with a red and
green color stop and the extend mode CAIRO_EXTEND_PAD.  The only
difference between the two is the the green color stop in
transparent_gradient.pdf has 0.5 alpha while in opaque_gradient.pdf it
is 1.0. The red color stop has alpha = 1 in both files.

I've also attached screen captures of each pdf as displayed by evince
and ghostscript. The evince output appears to be identical for both
pdf files.

I am using evince 0.6.1, poppler 0.5.4, and ghostscript 8.54.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: evince_opaque.png
Type: image/png
Size: 25281 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20070319/221f312e/evince_opaque-0001.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: evince_transparent.png
Type: image/png
Size: 24960 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20070319/221f312e/evince_transparent-0001.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gs_opaque.png
Type: image/png
Size: 5252 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20070319/221f312e/gs_opaque-0001.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gs_transparent.png
Type: image/png
Size: 9251 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20070319/221f312e/gs_transparent-0001.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: opaque_gradient.pdf
Type: application/pdf
Size: 9947 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20070319/221f312e/opaque_gradient-0001.pdf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: transparent_gradient.pdf
Type: application/pdf
Size: 11720 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20070319/221f312e/transparent_gradient-0001.pdf


More information about the cairo mailing list