For all of you looking for a program that can convert inkscape to pdf, I have made the script a little nicer. Just save everything starting with the line #!/bin/bash in a text file and make it executable (chmod 755). This works only on unix compatible systems, and you need xfig, ps2pdf and bash installed.
Run this, there are some options:
-p (portrait) -l (landscape) -d dpi (90 is default, higher looks better but is slower)
Final argument is the filename of a file containing a listof inkscape svg files. The list can contain just one or a more svg files, which allows you to make a nice sideshow.
Oh, btw, you can also use inkview, which is very nice, but it seems to ignore the color of the paper, if you set it to anything else as white. I don't know whether that is a bug or whether I did something wrong.
Hope it works!
-------------------------------------------------------------------------
#!/bin/bash
orientation="PORTRAIT" DPI=90
while getopts pld: option do case $option in ( p ) orientation="PORTRAIT" ;; ( l ) orientation="LANDSCAPE" ;; ( d ) DPI=$OPTARG ;; esac done
FILE=($*) FILE=${FILE[(($#-1))]}
if [ ! -e $FILE ] then echo File $FILE does not exist. exit fi
TMPFIG="tmp.fig"
echo "#FIG 3.2" > $TMPFIG
if [ $orientation == "PORTRAIT" ] then echo "Landscape" >> $TMPFIG else echo "Portrait" >> $TMPFIG fi
echo "Center" >> $TMPFIG echo "Metric" >> $TMPFIG echo "Letter" >> $TMPFIG echo "100.00" >> $TMPFIG echo "Single" >> $TMPFIG echo "-2" >> $TMPFIG echo "1200 2" >> $TMPFIG echo "2 5 0 1 0 -1 50 -1 -1 0.000 0 0 -1 0 0 5" >> $TMPFIG echo " 0 all.png" >> $TMPFIG
if [ $orientation == "PORTRAIT" ] then echo " -16 1 12567 1 12567 9701 -16 9701 -16 1" >> $TMPFIG else echo " 3 22 9715 22 9715 12566 3 12566 3 22" >> $TMPFIG fi
A=`awk '{print $0}' $FILE`
rm -f allfigures.ps
for i in ${A[*]} do rm -f all.png inkscape $i --export-dpi=$DPI --export-png=all.png fig2dev -Lps -c $TMPFIG >> allfigures.ps done
ps2pdf allfigures.ps
rm -f allfigures.ps rm -f all.png rm -f $TMPFIG