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:"  
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
        
        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
#       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"

        rm $nodotseps
        
        
        pdfoutfilecropped="$nf$suffix.pdf"

        pdfcrop $pdfoutfile1 $pdfoutfilecropped  
        rm $pdfoutfile1
  
done

--------8<---- eps2pdf.sh ----------

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/689349

Title:
  [Upstream] Draw file exported to PDF have erroneous pixel-sized dots
  in Acroread, not in Evince

To manage notifications about this bug go to:
https://bugs.launchpad.net/df-libreoffice/+bug/689349/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to