Greetings.
In article <20060315123530.GJ15189@...1683...>, Eric Jonas wrote:
Can someone suggest another SVG to PDF converter which will preserve transparency? I tried Cairo's svg2pdf, but it just segfaults midway through processing the file.
I have had a degree of success with batik, from the Apache project. It is mostly billed as a "SVC rasterizer" but it can also "transcode" SVG to PDF. Sometimes it eats my fonts, sometimes it eats my arrow-heads, but 98% of the time it does exactly what I want.
Alas, batik too fails miserably:
[psy@...1686...:/tmp/batik-1.6]$ java -jar batik-rasterizer.jar -m application/pdf Psychedelic\ poster.svg About to transcode 1 SVG file(s)
Converting Psychedelic poster.svg to Psychedelic poster.pdf ... org.apache.batik.transcoder.TranscoderException: null Enclosed Exception: The current document is unable to create an element of the requested type (namespace: http://www.w3.org/2000/svg, name: flowRoot). at org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(Unknown Source) at org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(Unknown Source) at org.apache.batik.apps.rasterizer.SVGConverter.transcode(Unknown Source) at org.apache.batik.apps.rasterizer.SVGConverter.execute(Unknown Source) at org.apache.batik.apps.rasterizer.Main.execute(Unknown Source) at org.apache.batik.apps.rasterizer.Main.main(Unknown Source) ... error (SVGConverter.error.while.rasterizing.file)
Regards, Tristan