I want to convert a SVG file to PDF from the command line on Mac OSX. Is there any way to do this?
3 Answers
Yes, you can do this by using the rsvg-convert
command.
You can install it using homebrew, just type:
brew install librsvg
After that you can convert SVG files to PDF using the following command:
rsvg-convert -f pdf -o file.pdf file.svg
-
2
Inkscape can be called on the command line, and you can convert SVG to PDF with:
inkscape --export-filename=out.pdf in.svg
Open the .svg with Safari and "File > Export as PDF..."