On Thu, 13 Sep 2001 17:55:28 +0300 wrote Dekel Tsur <[EMAIL PROTECTED]>:
> On Thu, Sep 13, 2001 at 12:23:05PM +0300, Tuukka Toivonen wrote:
> > >I have eps files but their margin are too big
> >
> > You could use ps2eps program. As far as I understand, that
> > computes the bounding box of a postscript file by actually
> > rasterizing it and checking where the image ends.
> > ...
>
> You can also try ps2epsi that comes with ghostscript.
>
Unfortunately, ps2epsi will add a bitmap representation (thumbnail) of the
content.
ps2epsi is a utility, based on Ghostscript, which takes an input postscript
file and generates a new output file which conforms to Adobe's 'Encapsulated
Postscript Interchange' or EPSI format. This is a special form of encapsulated
postscript (EPS) which adds a bitmap version of the final displayed page (in
the form of postscript comments) to the beginning of the file. This bitmap
can be used by programs which understand EPSI (usually word processors or
DTP programs) to give a preview version of the postscript on screen. The
displayed quality is often not very good (eg. low resolution, no colours),
but the final printed version uses the 'real' postscript, and thus has the
normal full postscript quality.
As LyX doesnot need/use this bitmap for preview, it is better not to enlarge
your files by this.
You can also use the attached script eps2eps (if you have ghostscript).
Put it somewhere in your PATH and then the command
eps2eps MyToLargeGraphik.eps
will fix your file, i.e. remove the too big margins.
Guenter
#!/bin/sh
# eps2eps -- in order to correct bounding box
# $Id: eps2eps,v 1.3 2000/10/29 23:38:18 matej Exp $
# $Log: eps2eps,v $
# Revision 1.3 2000/10/29 23:38:18 matej
# TMP setting in true side of if.
#
# Revision 1.2 2000/10/29 23:35:34 matej
# Correction of if command -- shit!
#
# Revision 1.1 2000/10/29 23:28:59 matej
# Initial revision
#
if [ -z $2 ]
then
TMP=` mktemp /tmp/eps2eps.XXXXXX `
cp $1 $TMP
INPUT=$TMP
OUTPUT=$1
else
INPUT=$1
OUTPUT=$2
fi
gs -dBATCH -dNOPAUSE -sDEVICE=epswrite -sOutputFile=$OUTPUT $INPUT
trap "rm $TMP* 2>/dev/null" 0
#
# end of script eps2eps
--
[EMAIL PROTECTED]