[poppler] Getting a raster image like pdf2ppm

Adrian Johnson ajohnson at redneon.com
Sat May 16 09:32:44 PDT 2009


Angus March wrote:
> I tried using Poppler to get a Cairo surface and then saving the surface
> to a PNG. Unfortunately, the resulting image was of disastrously low
> quality.

Without seeing your code or the output you are getting I can only guess 
at what the problem might be. Did you alter the cairo scale to get the 
desired image dpi?

The attached code works for me.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pdftoimage.c
Type: text/x-csrc
Size: 2240 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/poppler/attachments/20090517/f51a5f56/attachment.c 


More information about the poppler mailing list