[poppler] Getting a raster image like pdf2ppm

Adrian Johnson ajohnson at redneon.com
Wed May 20 08:29:12 PDT 2009


Angus March wrote:
>     It was definitely an improvement, but I think the only thing that
> did improve was the resolution. The old problems that caused me to
> abandon Cairo persisted, which are: gradients have ugly stripes on them,
> a background that should be white and opaque is black and transparent,
> and some text that has a shadow in the PDF doesn't in the image. I don't
> suppose you know of a way to deal w/those problems.

The striped gradients are a known bug. The black transparent background 
is a bug in my code. The surface should be painted white by calling:

   cairo_set_source_rgb (cr, 1, 1, 1);
   cairo_paint (cr);

after creating the image surface.

I don't know what the text shadow problem is without seeing the PDF. Is 
it similar to the effect in:

http://bugs.freedesktop.org/show_bug.cgi?id=20668#c7 (correct rendering)
http://bugs.freedesktop.org/show_bug.cgi?id=20668#c8 (poppler/cairo)



More information about the poppler mailing list