Today I learned that if you have Inkscape installed on your machine, you can convert .SVG files into .PDF, using this simple command:

inkscape input.svg --export-filename=output.pdf
  • Replace input.svg with the name of your SVG file and output.pdf with the desired output PDF file name.

Example use case

Say you have developed a drawing or mindmap in Excalidraw. You can export this to SVG and then run the command to convert it to PDF. Very cool!