# A Python script to convert svg files to pdf at once

For my publications, I'm using 
Inkscape to create vector graphics in svg format and finally, I convert them to 
pdf format in order to import them into a latex document. Lot of times the amount of 
graphic files in a document are very huge. So everytime I make a correction in svg 
file I have to re-convert it to correspoding pdf. To avoid this, I took advantage 
of the inkscape's powerful CLI and wrote the following all_svg2pdf script 
in Python language. 



Download all_svg2pdf.py 


The script finds all svg files in a root folder and below it, and converts them 
to corresponding pdf files without using Inkscape's GUI.


You can use the script freely, and modify it to your needs. Be sure that Inkscape 
has been installed to your machine. You can check this, by giving the following 
terminal command:
~$ which inkscape /usr/bin/inkscape	# You will see this output if inkscape is present


If not, you can install it through the following terminal command:

       
~$ sudo apt-get install inkscape


Windows users have to add Inkscape's executable path into %PATH system variable manually.
