summaryrefslogtreecommitdiff
path: root/test/pdf2png.c
AgeCommit message (Collapse)AuthorFilesLines
2018-10-17test: Free resources in pdf2pngBryce Harrington1-0/+2
Patch proposed by Bofa. Fixes: https://gitlab.freedesktop.org/cairo/cairo/issues/317 Reviewed-by: Bryce Harrington <bryce@bryceharrington.org>
2016-04-16pdf2png: fix deprecated warningAdrian Johnson1-0/+2
2010-06-11test: Use a group to render PDF correctly using poppler.Chris Wilson1-3/+6
In order to support blend modes, we need to use a clear background whilst rendering the PDF, which inspired the use of DEST_OVER to avoid having to render to an intermediate surface. However, the adjunct of using subpixel text means that we cannot simply using the alpha channel as the sole mask and so need to render to an intermediate and paint it over an opaque background.
2010-06-11Revert "test/pdf2png: Don't use DEST_OVER as poppler starts using subpixel ↵Chris Wilson1-5/+5
text." This reverts commit 506b2ebe714d61a64972b607a42a55e48d1c722a. We have conflicting requirements here. In order to support extended blend modes correctly we need to use DEST_OVER, at the expense of supporting subpixel text. More thought required.
2010-06-11test/pdf2png: Don't use DEST_OVER as poppler starts using subpixel text.Chris Wilson1-5/+5
Using DEST_OVER in this form to paint the background white fails in the presence of subpixel geometry (particular text), so remove the hack and simply paint the background white prior to passing the surface to poppler. KISS.
2009-07-02[test] Use poppler_page_render with a transparent surfaceCarlos Garcia Campos1-4/+5
Instead of using an opaque surface filled in white, use a transparent surface and fill it in white by using CAIRO_OPERATOR_DEST_OVER after rendering.
2009-01-02[test] Fix mismatched free.Chris Wilson1-2/+2
A couple of strings allocated using glib functions but freed with system malloc. Reported: http://bugs.freedesktop.org/show_bug.cgi?id=19210.
2008-11-05[test/pdf2png] Remove dependency on GdkPixbufChris Wilson1-13/+19
It's appears to be dropped from the current poppler trunk, so just use our own venerable cairo_surface_write_ton_png().
2006-06-14Bug 5306: test/pdf2png: Add missing include of stdio.hDom Lachowicz1-0/+1
2006-05-05Revert "pdf2png: Use new poppler_page_render to render directly through cairo."Carl Worth1-27/+11
This introduced a rather gratuitous dependency on a newer version of poppler, which caused a fair amount of pain for no significant benefit. This reverts 253472492ee2a690646a30b32cf8180f5b6e3299 commit.
2006-05-02pdf2png: Use new poppler_page_render to render directly through cairo.Carl Worth1-11/+27
...as opposed to using poppler_page_render_to_pixbuf.
2005-12-07Add checks for poppler and friends which are needed by pdf2png. Set ↵Carl Worth1-0/+88
CAIRO_CAN_TEST_PDF_SURFACE as both a #define and an automake conditional. Build pdf2png if possible. Add support for testing the PDF backend. New utility program to convert a PDF file into a PNG image using poppler (thanks to Kristian Høgsberg). Ignore new stuff generated by PDF backend testing.