Created attachment 96712 [details]
Example of missing items when printing
When I print the attached pdf file in evince, then the little green boxes used to indicate items in the itemization are missing.
The boxes are perfectly visible on screen, but when printing to a pdf file or printer or when using the pdf preview they are missing.
I am using ubuntu x86_64 with the following packages:
ii evince 3.10.0-0ubuntu2
ii libpoppler-glib8:amd64 0.24.1-0ubuntu1
ii libpoppler43:amd64 0.24.1-0ubuntu1
As a reference: I have filled the same bug on the ubuntu bugtracker and was refered to here. http://bugs.launchpad.net/ubuntu/+source/evince/+bug/1300659
Does pdftops produce a file with boxes you can print?
Yes using pdf2ps on the file and then opening/printing the postscript file produces the correct results.
looks like a cairo backend bug to me then
Problem is caused by _cairo_path_fixed_stroke_extents() returning wrong extents.
Created attachment 125086 [details]
Reduced test case
Reduced test case. This PDF strokes a single path of one of the boxes in the original PDF. The original PDF draws the boxes with the fill-stroke operator "B". I've replaced it with a stroke "S".
pdftocairo -ps reduced-test-case.pdf out.ps
The output does not show the box.
Created attachment 125087 [details] [review]
This patch shows the problem is caused by _cairo_path_fixed_stroke_extents().
If the operation is changed to a fill (change line 259 in the PDF from "S" to "f") the box appears in the output.
-- 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/cairo/cairo/issues/241.