Bug 89355

Summary: PDF highlight annotations don't print correctly
Product: poppler Reporter: Anders Damsgaard <andersd>
Component: cairo backendAssignee: poppler-bugs <poppler-bugs>
Status: RESOLVED MOVED QA Contact:
Severity: normal    
Priority: medium CC: bhs2007
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: Original pdf example with highlighting annotations
example.pdf printed to file
Simple test case with highlight annotations
Simple test case with highlight annotations after bug introduced

Description Anders Damsgaard 2015-02-27 09:33:22 UTC
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
Comment 1 Anders Damsgaard 2015-02-27 09:33:53 UTC
Created attachment 113859 [details]
example.pdf printed to file
Comment 2 Stephen E. 2017-03-30 20:45:30 UTC
Created attachment 130595 [details]
Simple test case with highlight annotations

Attached a new test case (original document before processing)
Comment 3 Stephen E. 2017-03-30 20:53:11 UTC
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.
Comment 4 Stephen E. 2017-03-30 21:01:06 UTC
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).
Comment 5 GitLab Migration User 2018-08-21 10:47:27 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/poppler/poppler/issues/375.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.