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
SVG is a vector graphic image file extension that contains scalable images. This XML based file extension supports animation that can contains vector graphics, raster graphics, and text. It uses lossless data compression algorithm to contain data. It can be edited drawing software as well as text editors also.
Best 5 PDF to SVG Converter on Windows/Mac/Online: Inkscape. Adobe Illustrator. Zamzar. Convertio.
There are two options:
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With