Summary: | printed pdf file lacks item boxes | ||
---|---|---|---|
Product: | cairo | Reporter: | Matthias Braun <matze> |
Component: | general | Assignee: | Chris Wilson <chris> |
Status: | RESOLVED MOVED | QA Contact: | cairo-bugs mailing list <cairo-bugs> |
Severity: | normal | ||
Priority: | medium | ||
Version: | unspecified | ||
Hardware: | x86-64 (AMD64) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
Example of missing items when printing
Reduced test case Debug patch |
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".
To reproduce:
pdftocairo -ps reduced-test-case.pdf out.ps
The output does not show the box.
Created attachment 125087 [details] [review] Debug patch 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. |
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.
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