Age | Commit message (Collapse) | Author | Files | Lines |
|
Patch proposed by Bofa.
Fixes: https://gitlab.freedesktop.org/cairo/cairo/issues/317
Reviewed-by: Bryce Harrington <bryce@bryceharrington.org>
|
|
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
A couple of strings allocated using glib functions but freed with system
malloc.
Reported: http://bugs.freedesktop.org/show_bug.cgi?id=19210.
|
|
It's appears to be dropped from the current poppler trunk, so just use our
own venerable cairo_surface_write_ton_png().
|
|
|
|
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.
|
|
...as opposed to using poppler_page_render_to_pixbuf.
|
|
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.
|