[poppler] pdf2svg image quality

Adrian Johnson ajohnson at redneon.com
Sun Dec 4 13:01:54 PST 2011

On 05/12/11 00:05, Jan Kümmel wrote:
> Hi,
> when pdf2svg uses poppler to render a pdf to a cairo svg surface,
> embedded images are downscaled by CairoOutputDev::downscaleSurface which
> results in poor image quality.
> Please find attached a simple patch preventing downscaling for svg
> surfaces. Works for me.
> Could this be useful for other scalable surface types, too?

The bug is in pdf2svg. It should be calling
poppler_page_render_for_printing() instead of poppler_page_render().
poppler_page_render() is for rendering to image surfaces.
poppler_page_render_for_printing() is rendering to vector surfaces.

> Regards,
> Jan
> _______________________________________________
> poppler mailing list
> poppler at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/poppler

More information about the poppler mailing list