'Adobe PDF via poppler-cairo' (trunk): imprecise and incorrect stroke widths
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
Medium
|
theAdib |
Bug Description
Importing PDFs via the experimentally enabled 'Adobe PDF via poppler-cairo (*.pdf)' input extension lacks precision and incorrectly adjusts line widths (thin lines default to 1px).
Based on the information [2] provided in a ticket filed for 'pdf2svg' (also based on poppler-cairo) in MacPorts [1] I tried to apply the same changes to Inkscape's import routine based on poppler-cairo, which produces the intentioned improvements for line drawings (but apparently introduces a regression with regard to PDF elements converted into pattern-filled SVG objects [3]).
The proposed patch needs to be reviewed by someone familiar with both poppler and cairo - I haven't tested it extensively with other PDF files, but the problem with bad precision and incorrect line widths can be reproduced both with externally created PDF files as well as with PDF files created by Inkscape (see attached samples).
Tested with current trunk r11512 (unpatched and patched) on OS X 10.7.4,
with poppler 0.18.4 and cairo 1.12.2 installed.
---
[1] <https:/
[2] the ticket quotes a conversion on irc with cairo developer Adrian Johnson:
<wagle> if pdf2svg uses poppler, and now draws lines too thick compared to 6-9 months ago, is poppler the one at fault? The lines used to be 0.398 thick, are now 1
<adrianj> wagle: pdf2svg should be calling poppler_
<adrianj> The stroke adjust feature will cause lines < 1 wide to be adjusted to 1 pixel wide but only for image surfaces.
[3] See also the files attached in (private) bug #1009438 "Cannot Import Vector PDFs with large number of paths"
Related branches
description: | updated |
Changed in inkscape: | |
status: | Fix Committed → Fix Released |
With regard to 'precision': please open the files 1-poppler- cairo-pdf- import- unpatched. svg 1-poppler- cairo-pdf- import- patched. svg
- drawing-
- drawing-
in Inkscape, zoom in closely to a drawing detail, and compare the paths in outline view mode.