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 3


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

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..."

  • Good to know, the question asked for a command-line solution though.
    – nohillside
    Sep 8 at 15:24

You must log in to answer this question.

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