Created attachment 113858 [details]
Original pdf example with highlighting annotations
I have a PDF (example.pdf) with several highlighting-type annotations. They are all rendered correctly on-screen.
When I print the document or print to PDF a few of the highlights are handled correctly. Most of them have the yellow highlighting rendered on top of the font, however, thus hiding the text of interest (see attached example_to_pdf.pdf).
I encountered this problem using Evince 3.14.1 on an up-to-date Debian Jessie system with Poppler 0.26.5.
Evince bug report: https://bugzilla.gnome.org/show_bug.cgi?id=745199
Created attachment 113859 [details]
example.pdf printed to file
Created attachment 130595 [details]
Simple test case with highlight annotations
Attached a new test case (original document before processing)
Created attachment 130598 [details]
Simple test case with highlight annotations after bug introduced
Attached a new test case (output document with visual corruption)
This bug affects me too, even on the current Poppler release (0.53). Here's a simple way to reproduce:
1. Download the previous attachment with the original test case input file: https://bugs.freedesktop.org/attachment.cgi?id=130595
2. Run: pdftocairo -pdf in.pdf out.pdf
3. Observe that in out.pdf (the flattened, print-ready version of in.pdf), some of the highlights cover the text rather than being drawn behind it. Currently the first highlight render correctly, but all the others do not.
Also note that this bug only manifests when using PDF or SVG as outputs; It does not appear to affect PS/EPS or the bitmap backends. I believe the PDF output problem is the reason this bug impacts Evince (where you can see the problem even in the Print Preview).