Unfilled rectangle with gradient on stroke becomes filled in PDF

Bug #543279 reported by thorwil
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Inkscape
Invalid
Undecided
Unassigned

Bug Description

 * Create rectangle, no fill, gradient on stroke
 * Save as PDF

Results in a filled rectangle in the PDF. Does not matter if fill colors are opaque or not.

 * Convert sroke of the rectangle to path
 * Save as PDF again

Result looks as it should. The same should be possible without converting the stroke explicitly.

Revision history for this message
thorwil (t-w-) wrote :
su_v (suv-lp)
tags: added: exporting gradient pdf
Revision history for this message
su_v (suv-lp) wrote :

not reproduced with Inkscape 0.47+devel r9222 on OS X 10.5.8 (cairo 1.8.10)

the default PDF viewer on OS X renders the strokes with gradients the same as Inkscape, all objects are unfilled.

Could you please provide information about your OS, Inkscape version and PDF viewer used to compare?

Revision history for this message
thorwil (t-w-) wrote :

Ubuntu 9.10
Own build of Inkscape 0.47 r22583
Evince 2.28.1

Revision history for this message
thorwil (t-w-) wrote :
Revision history for this message
su_v (suv-lp) wrote :

screenshot of your PDF file 'fill-test.pdf' from comment #4 viewed with the default PDF viewer on Mac OS X. I think this is an issue with PDF viewer Evince (or maybe with poppler) and not with Inkscape's cairo-based PDF export.

JazzyNico, Alvin - can you test this with Adobe Acrobat or other PDF viewers?

Revision history for this message
su_v (suv-lp) wrote :

further indication it is a poppler-related issue:
1) open the PDF file 'fill-test.pdf' in Inkscape
2) the preview in the PDF import dialog shows the same error as described by the bug reporter
3) however the PDF file is correctly imported and rendered on-canvas in Inkscape

Revision history for this message
su_v (suv-lp) wrote :

- further indication it is a poppler-related issue:
+ further indication it is a (upstream) bug in poppler:

Revision history for this message
su_v (suv-lp) wrote :

related poppler bug report: 16235 – stroked gradient renders incorrectly:
<http://bugs.freedesktop.org/show_bug.cgi?id=16235>

which is a duplicate of 10942 – spurious horizontal stripes in color gradients:
<http://bugs.freedesktop.org/show_bug.cgi?id=10942>

incorrect preview of stroked gradient seen with Inkscape 0.47+devel r9222 on OS X 10.5.8 with cairo 1.8.10 and poppler 0.12.1

Revision history for this message
jazzynico (jazzynico) wrote :

Reproduced on Ubuntu 9.10 with evince 2.28.1, but not with Acrobat Reader 8.1.2.

Revision history for this message
jazzynico (jazzynico) wrote :

libpoppler version is 0.12.0 on Ubuntu 9.10. Could someone test on Lucid (and libpoppler 0.12.4)?

Revision history for this message
su_v (suv-lp) wrote :

sorry - poppler issue #10942 had already been fixed in version 0.11.2 (0.12 Beta 2):
 * Cairo output device improvements. Bugs #10942, #18017, #14160
<http://lists.freedesktop.org/archives/poppler/2009-August/004988.html>

Either the bug triage (16235 is a duplicate of 10942) was wrong or the fix for 10942 was only partial. IMHO the test case (PDF) attached to 16235 (stroked gradient renders incorrectly) is the same issue as described here.

Maybe the relevant bug in poppler is 11719 – Implement clipToStrokePath() in CairoOutputDev (status: NEW)
<https://bugs.freedesktop.org/show_bug.cgi?id=11719>

Revision history for this message
su_v (suv-lp) wrote :

Not reproduced on Ubuntu 14.04 (VM, 64bit; host: OS X 10.7.5) with Evince 3.10.3 (poppler 0.24.5).

Closing as 'Invalid' for project Inkscape (assuming bug fixed upstream in newer poppler versions).

Changed in inkscape:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.