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
Take a look at the Apache Batik Toolkit. The rasterizer can convert svg to images or pdf (It's a java tool).
The SVG Rasterizer is a utility that can convert SVG files to a raster format. The tool can convert individual files or sets of files, making it easy to convert entire directories of SVG files. The provided formats are JPEG, PNG and TIFF, however the design allows new formats to be added easily. In addition, the rasterizer can (despite its name) transcode to PDF.
It does not come free, but PrinceXML does a very good job with SVG.
You can use altsoft xml2pdf server for this
you might want to look into Apache FOP.
Check out the part about graphic formats.
来源:https://stackoverflow.com/questions/1048205/how-to-programmatically-convert-svg-to-pdf-on-windows