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 Desktop
Packages, which is subscribed to openoffice.org in Ubuntu.
https://bugs.launchpad.net/bugs/689349

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

Status in LibreOffice Productivity Suite:
  Confirmed
Status in “libreoffice” package in Ubuntu:
  Triaged
Status in “openoffice.org” package in Ubuntu:
  Won't Fix

Bug description:
  Binary package hint: openoffice.org
  Binary package hint: libreoffice

  1) lsb_release -rd
  Description:  Ubuntu 12.10
  Release:      12.10

  2) apt-cache policy libreoffice-draw
  libreoffice-draw:
    Installed: 1:3.6.2~rc2-0ubuntu4
    Candidate: 1:3.6.2~rc2-0ubuntu4
    Version table:
   *** 1:3.6.2~rc2-0ubuntu4 0
          900 http://archive.ubuntu.com/ubuntu/ quantal-updates/main i386 
Packages
          400 http://archive.ubuntu.com/ubuntu/ quantal-proposed/main i386 
Packages
          100 /var/lib/dpkg/status
       1:3.6.2~rc2-0ubuntu3 0
          500 http://archive.ubuntu.com/ubuntu/ quantal/main i386 Packages

  apt-cache policy acroread
  acroread:
    Installed: 9.5.1-1precise1
    Candidate: 9.5.1-1precise1
    Version table:
   *** 9.5.1-1precise1 0
          100 /var/lib/dpkg/status

  apt-cache policy evince
  evince:
    Installed: 3.6.0-0ubuntu2
    Candidate: 3.6.0-0ubuntu2
    Version table:
   *** 3.6.0-0ubuntu2 0
          500 http://archive.ubuntu.com/ubuntu/ quantal/main i386 Packages
          100 /var/lib/dpkg/status

  3) What is expected to happen is when one performs at the Terminal:
  cd ~/Desktop && wget 
https://bugs.launchpad.net/ubuntu/+source/openoffice.org/+bug/689349/+attachment/1763870/+files/classnetwork.odg
 && unoconv --listener && unoconv -f pdf classnetwork.odg && acroread 
classnetwork.pdf

  is it looks as it does in Evince.

  4) What happens instead is acroread displays erroneous pixel-sized
  dots as per screenshot
  
https://bugs.launchpad.net/ubuntu/+source/openoffice.org/+bug/689349/+attachment/1763844/+files/garbagescreenshot.png
  , while evince does not.

  First reproduced in Maverick 1:3.3.1-1ubuntu3~maverick1, and
  reproduced in Natty, and Precise.

  Unconfirmed OOo WORKAROUND: The upstream version does _not_ produce
  these effects and is fine.

  ApportVersion: 2.6.1-0ubuntu6
  Architecture: i386
  CheckboxSubmission: 30b6638832e19720cfe8f7a91e5798a4
  CheckboxSystem: 2954e74ba17fb0e37fc942cd1d9fab4e
  DistroRelease: Ubuntu 12.10
  InstallationDate: Installed on 2012-06-11 (164 days ago)
  InstallationMedia: Xubuntu 12.04 "Precise Pangolin" - Alpha i386 (20120131.1)
  MarkForUpload: True
  Package: libreoffice 1:3.6.2~rc2-0ubuntu4
  PackageArchitecture: i386
  ProcEnviron:
   LANGUAGE=en_US:en
   TERM=xterm
   PATH=(custom, no user)
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  ProcVersionSignature: Ubuntu 3.5.0-17.28-generic 3.5.5
  Tags: quantal
  Uname: Linux 3.5.0-17-generic i686
  UpgradeStatus: Upgraded to quantal on 2012-09-14 (68 days ago)
  UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo

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

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to