Wednesday, September 9, 2009

Converting SVG to PDF

Inkscape output to PDF or save to PDF is no good. It changes the fonts to ugly Bitstream Vera whatever. Use Batik Rasterizer instead.

Install it anywhere you like. In my case, it's located in /opt/batik.

To convert files, use the command as shown (assuming you're in the directory where the SVG file is located):

$ java -jar /opt/batik/batik-rasterizer.jar -m application/pdf Figure1.svg

No comments:

Post a Comment