comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: EPS vs. PS
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: EPS vs. PS [message #40672] Wed, 25 August 2004 04:29 Go to next message
mannstein is currently offline  mannstein
Messages: 5
Registered: August 2004
Junior Member
Hello Micheal,
you just have to convince your printer, that it gets a .ps file -
add these two lines ahead of your .eps file:

%!PS-Adobe-1.0
save [ /showpage {} def

and append

cleartomark restore
showpage

at the end. We use the following little shell script ( called eps2ps)

#!/bin/sh

if [ $# -le 0 -o $# -gt 2 ]; then
echo usage: `basename $0` file.eps [ file.ps ] >&2
exit 1
fi

if [ ! -r $1 ]; then
echo Can\'t read file $1. >&2
exit 1
fi
epsfile=$1

output=""
if [ $# = 2 ]; then
output=$2
fi

(
cat <<EOF
%!PS-Adobe-1.0
save [ /showpage {} def
EOF

cat $epsfile

cat <<EOF
cleartomark restore
showpage
EOF

) | (
if [ "$output" = "" ]; then
cat
else
cat >$2
fi
)



Michael Wallace wrote:
> This isn't really an IDL question, but I figured that some of you might
> have dabbled more in image file formats that I have. I have some object
> graphics and created an EPS file (which looks really nice, BTW). I
> couldn't find any way to save the object graphics as normal PS. Despite
> David's notes on this
> (http://www.dfanning.com/ographics_tips/object_eps.html), I couldn't
> even get the printer thing to work.
>
> It was then that I had what I thought was a brilliant idea. I used
> ImageMagick to convert the EPS to a PS. I printed out both files. The
> EPS file looked awesome -- everything nice and smooth and crisp. The
> printout of the PS file had some fuzziness about it. It appeared that
> the conversion was done by rastorizing the EPS and saving that as PS.
> The rastorization would have produced the fuzziness I saw. So, does
> anyone know how to convert EPS to PS and preserve the vector-ness of the
> EPS? Maybe there's an option of ImageMagick I don't know about yet or
> maybe even something in IDL itself? Ideas? Any PS gurus out there?
>
> -Mike


--

!!!!! Please try to avoid .doc attachments !!!!!
------------------------------------------------------------ ----
Dr. Hermann Mannstein Hermann.Mannstein@dlr.de
DLR-Institut fuer Physik der Atmosphaere
Oberpfaffenhofen, D-82234 Wessling Germany
Fon +49-8153-28-2503, Fax +49-8153-28-1841
http://www.dlr.de/ipa/
------------------------------------------------------------ ----
Re: EPS vs. PS [message #40793 is a reply to message #40672] Wed, 25 August 2004 14:35 Go to previous message
Michael Wallace is currently offline  Michael Wallace
Messages: 409
Registered: December 2003
Senior Member
As circuitous as this is, I learned that I can do this with ImageMagick:

convert file.eps file.pdf && convert file.pdf file.ps


Going through PDF in the middle causes the final Postscript file to keep
the vector information rather than changing it to raster image. The odd
thing is that the simpler command causes the PS created to be a raster
image.

convert file.eps file.ps

Strange behavior if you ask me.


-Mike
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: window size
Next Topic: Another EPS question

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 12:53:21 PDT 2025

Total time taken to generate the page: 1.44212 seconds