I want to convert a SVG file to PDF from the command line on Mac OSX. Is there any way to do this?

2 Answers 2


Inkscape can be called on the command line, and you can convert SVG to PDF with:

inkscape --export-filename=out.pdf in.svg

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
  • This does not support embedded fonts unfortunately.
    – Timmmm
    Apr 7 at 13:26

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .