Main Contents

Converting eps to fig

Tags: , ,

Here is the command line to convert an eps (Encapsulated PostScript) file to a fig file (xfig), pstoedit is needed :
Voici la ligne de commande qui permet de convertir un fichier eps en fig, pstoedit est nécessaire :
pstoedit -dis -f fig bla.eps > bla.fig
and the nautilus script is as follows (you can name it eps2fig or EpsToFig for example) :
le script nautilus est le suivant :
#!/bin/bash
IFS='
'
for file in $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
do
if [ -f "$file" ]; then
base=${file%.*}
ext=${file##*.}
newname=${base}.fig
pstoedit -dis -f fig $file > $newname
fi
done

romain @ September 9, 2008

Leave a comment


Feed