transparency lost in pdf export of groups with clip-path= property
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Triaged
|
Medium
|
Unassigned |
Bug Description
svg graphics exported by some software (Mathematica 8.0 in my case) may contain groups that have a property of clip-path=
This is new to inkscape version 0.48.4 (pdf reports cairo 1.12.16). Earlier versions converted the same svg graphics correctly (pdf reports cairo 1.12.2, incscape version 0.48.3.1).
If the clip-path=... property is simply deleted from the svg, pdf-export is correct again (but a clipping frame may be lost at the same time). The same could be achieved by importing the svg into inkscape, then degrouping all grouped objects and group them again. Inkscape then will place the <clipPath outside the groups and is now able to do the export correctly. This may also an svg inconsistency.
My workaround in background svg-to-pdf conversion is to use a sed editor command to delete the relevant lines from the svg before the conversion to pdf:
sed 's/clip\
in order to simulate the behavior of the old inkscape as long as <clipPath is irrelevant, what is mostly the case for Mathematica graphics output. Ideas for alternative approaches are welcome!
tags: |
added: clipping exporting pdf removed: clip-path pdf-export transparency |
description: | updated |
description: | updated |
Changed in inkscape: | |
status: | Incomplete → Confirmed |
Please attach a sample SVG file and the PDF file exported on your system to allow further investigation with different versions of Inkscape and cairo.
Which OS/platoform do you use?