How to programmatically convert SVG to PDF on Windows?

Matthew Lock picture Matthew Lock · Jun 26, 2009 · Viewed 33.5k times · Source

I'm looking to programmatically convert SVG to PDF documents on a server. What are my options for doing that on Windows?

I've seen links to Inkscape, Batik, and svg2pdf, but I'm not sure if these can easily be automated to perform the conversion on a Windows server.

There's an unusual solution here which involves automating OpenOffice Portable on the server: http://www.codeproject.com/KB/office/PortableOpenOffice.aspx

Answer

Aaron Digulla picture Aaron Digulla · Jun 26, 2009

There are two options:

  • Batik (Java, open source)
  • Inkscape (native binary, open source)

Batik will give you more control. With Inkscape, you can use the command line parameters (--export-pdf IIRC) to do the conversion without firing up the UI.