Inkscape from command line

When a script should produce a vector image as output I love to use SVG, an XML and pure text format. Then you can use Inkscape to convert the XML (SVG) file into PDF or PNG:

inkscape -f FILENAME.svg -A FILENAME.pdf
inkscape -f FILENAME.svg -w WIDTH -h HEIGHT -e FILENAME.png

Thus for a fast batch conversion:

for i in *.svg; do inkscape -f $i -w 1024 -e $(echo $i|sed 's/svg/png/'); done