summaryrefslogtreecommitdiff
path: root/test/pdf2png.c
Commit message (Collapse)AuthorAgeFilesLines
* test: Free resources in pdf2pngBryce Harrington2018-10-171-0/+2
| | | | | | | Patch proposed by Bofa. Fixes: https://gitlab.freedesktop.org/cairo/cairo/issues/317 Reviewed-by: Bryce Harrington <bryce@bryceharrington.org>
* pdf2png: fix deprecated warningAdrian Johnson2016-04-161-0/+2
|
* test: Use a group to render PDF correctly using poppler.Chris Wilson2010-06-111-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.
* Revert "test/pdf2png: Don't use DEST_OVER as poppler starts using subpixel ↵Chris Wilson2010-06-111-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.
* test/pdf2png: Don't use DEST_OVER as poppler starts using subpixel text.Chris Wilson2010-06-111-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.
* [test] Use poppler_page_render with a transparent surfaceCarlos Garcia Campos2009-07-021-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.
* [test] Fix mismatched free.Chris Wilson2009-01-021-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.
* [test/pdf2png] Remove dependency on GdkPixbufChris Wilson2008-11-051-13/+19
| | | | | It's appears to be dropped from the current poppler trunk, so just use our own venerable cairo_surface_write_ton_png().
* Bug 5306: test/pdf2png: Add missing include of stdio.hDom Lachowicz2006-06-141-0/+1
|
* Revert "pdf2png: Use new poppler_page_render to render directly through cairo."Carl Worth2006-05-051-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.
* pdf2png: Use new poppler_page_render to render directly through cairo.Carl Worth2006-05-021-11/+27
| | | | ...as opposed to using poppler_page_render_to_pixbuf.
* Add checks for poppler and friends which are needed by pdf2png. Set ↵Carl Worth2005-12-071-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.