I have an Inkscape SVG file with a few transparency effects and different layers that I want to export to a PDF file for distribution. When I use "Save as..." or "Save a copy..." and select the PDF format, all the effects are garbled:
Top: expected output. Bottom: actual output.
I don't mind flattening the image, loosing editing capabilities and whatnot in the process, since I still have the original .svg, but I can't find any options for it anyway. I'd rather avoid exporting to a rasterized format, because I want to be able to use it for printing on large paper.
When searching for solutions to this, among other things I found this thread, originally from 2006, in which the most recent answer is from 2012 and reads
6 years later.. same problem. Inkscape can't export to pdf level opacity. So sad.
Is there really no way to do this?
You should upgrade your Inkscape to the PPA version Pre-0.49, my testing produced results using masking, clipping and a reference path difference:
To upgrade your inkscape, open up a terminal and issue the following commands:
This should remove the 0.48 version of inkscape and replace it with the pre-0.49 version you need for your pdf file.
You might also try converting your inkscape
.svg
file to.pdf
usingrsvg-convert
from thelibrsvg2-bin
package:This preserved transparency in my file.
Okay, here's my two cents on a workaround for this.
I tried the previous answer using
rsvg-convert
, which worked fine for transparent items. Problem is now, I have an embedded image in my SVG that actually got rasterized with a very low resolution. Specifying a higher X/Y dpi forrsvg-convert
didn't change that.So I did the following, which resolved the issue:
rsvg-convert -f pdf -o rasterized.pdf orig.svg
inkscape orig.svg
inkscape rasterized.pdf
Result: Transparent shapes, and high-resolution images.
One solution I have found to solve this obvious bug, is: In Inkscape save as: EPS then epstopdf the file. Result is looking perfect