I incurred into the same problem while working with Kile.
I modified Martin Weis script to process all the eps files in the directory and to add the suffix -eps-converted-to.pdf by default in generated pdfs , as Kile with the QuickBuild will be looking for those ones. Also it automatically crops files with pdfcrop, at least for my paper it worked fine with no strange parameters.
echo "Usage:"
echo
echo "eps2pdf [suffix] [dpapersize]"
echo
echo "Converts all the eps files in the directory. By default, for fname.eps it outputs fname-eps-converted-to.pdf, (which is the suffix looked for by Kile), otherwise fname[suffix].pdf"
if (shopt -s failglob; true *.eps) 2>/dev/null; then
echo "Found files"
else
echo
echo
echo "ERROR: no .eps found!"
exit 1
fi
#debug
#set -x
if [ -z "$1" ] ; then
suffix="-eps-converted-to"
else
suffix="$1"
fi
if [ -z "$2" ] ; then
dpapersize="a3"
else
dpapersize="$2"
fi
for f in *.eps
do
echo
echo "**** Processing $f file..."
# take action on each file. $f store current file name
#cat $f
# if [ -z "$2" ] ; then
# pdfoutfile1="$1-no-dots.pdf"
# else
# pdfoutfile1="$2"
# fi
nodotseps="$nf-no-dots.eps"
./fixodg2pdf.awk $nf.eps > $nodotseps
# the following all in one line
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dNOPAUSE -dQUIET -dBATCH -dSubsetFonts=true -dEmbedAllFonts=true -dPDFSETTINGS=/prepress -sPAPERSIZE="$dpapersize" -sOutputFile="$pdfoutfile1" "$nodotseps"
I incurred into the same problem while working with Kile.
I modified Martin Weis script to process all the eps files in the directory and to add the suffix -eps-converted- to.pdf by default in generated pdfs , as Kile with the QuickBuild will be looking for those ones. Also it automatically crops files with pdfcrop, at least for my paper it worked fine with no strange parameters.
Still needs the awk file, see https:/ /bugs.launchpad .net/ubuntu/ +source/ openoffice. org/+bug/ 689349/ comments/ 63
--------8<---- eps2pdf.sh ----------
#!/bin/bash
echo "Usage:" converted- to.pdf, (which is the suffix looked for by Kile), otherwise fname[suffix].pdf"
echo
echo "eps2pdf [suffix] [dpapersize]"
echo
echo "Converts all the eps files in the directory. By default, for fname.eps it outputs fname-eps-
if (shopt -s failglob; true *.eps) 2>/dev/null; then
echo "Found files"
else
echo
echo
echo "ERROR: no .eps found!"
exit 1
fi
#debug
#set -x
if [ -z "$1" ] ; then "-eps-converted -to"
suffix=
else
suffix="$1"
fi
if [ -z "$2" ] ; then
dpapersize="a3"
else
dpapersize="$2"
fi
for f in *.eps
do
echo
echo "**** Processing $f file..."
# take action on each file. $f store current file name
#cat $f
nf=${f::${#f}-4}
#if [ -z "$1" ] ; then
#echo "usage: $0 infile [outfile.pdf] [papersize (default: a3)]"
#exit 1
#fi
pdfoutfile1= "$nf-no- dots.pdf"
# if [ -z "$2" ] ; then "$1-no- dots.pdf"
# pdfoutfile1=
# else
# pdfoutfile1="$2"
# fi
nodotseps= "$nf-no- dots.eps"
./fixodg2pdf.awk $nf.eps > $nodotseps
# the following all in one line Level=1. 4 -dNOPAUSE -dQUIET -dBATCH -dSubsetFonts=true -dEmbedAllFonts =true -dPDFSETTINGS= /prepress -sPAPERSIZE= "$dpapersize" -sOutputFile= "$pdfoutfile1" "$nodotseps"
gs -sDEVICE=pdfwrite -dCompatibility
rm $nodotseps
pdfoutfilecrop ped="$nf$ suffix. pdf"
pdfcrop $pdfoutfile1 $pdfoutfilecropped
rm $pdfoutfile1
done
--------8<---- eps2pdf.sh ----------