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

Home » Public Forums » archive » Re: Q: Encapsulated Postscript - Mac vs. Unix
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: Q: Encapsulated Postscript - Mac vs. Unix [message #4054] Thu, 27 April 1995 00:00
teverovs is currently offline  teverovs
Messages: 4
Registered: April 1995
Junior Member
Plots on the Mac that I make with Igor program from WaveMetrics
are viewed by Word or Word Perfect or Canvas and printed just fine.
So MacOS is not to blame I think. However, eps format plots that were
made in IDL could not be read into WP/Word and Canvas would not display
them even though it will print them. RSI support person first adviced
to use /preview keyword, but it didn't make any difference.
Then I got the following responce. It didn't help me since
I cannot insert the plot into WP or Word - these programs do not
recognize the document as eps. See if it helps you.
-Elena


The following is a description of how another user successfully inported
a encapsulated postscript file into word perfect. Be sure you use the
encapsulated keyword to device and that you close the device. My
original suggestion to use the preview keyword may actually have caused a
problem. This particular user found that by omitting this keyword he was
able to successfully import the file.

1) create the IDL plot using just set_plot,'ps'

2) insert the plot into the WP document using the "graphic on disk" option

3) ignore the WP message "graphic contains info for Postscribt plotters
only." WP does bring the plot into the WP document, but you don't see it
on your screen. (the preview keyword to device does NOT solve this problem,
and should not be used, because files created with the preview keyword won't
print in step 4, below)

4) send the WP document to a Postscript printer, at which time both the
text and the graphic print out just fine.
Re: Q: Encapsulated Postscript - Mac vs. Unix [message #4149 is a reply to message #4054] Thu, 27 April 1995 00:00 Go to previous message
Troy Klein is currently offline  Troy Klein
Messages: 4
Registered: April 1995
Junior Member
Solution that works for me:

Try the package "ps2epsmac" at one of the Michigan Mac archive mirrors:

<URL:ftp://mirror.aol.com/pub/mac/util/unix/>

The approach is to take your ps file, generate a PICT image using
Ghostscript and PBMplus, and then combine the PICT image and the
original postscript into a MacBinary file. All of this is accomplished
via a UNIX script file.

Once you decode the MacBinary on your Mac, you end up with a true
Mac EPSF file. You can even select the TYPE and CREATOR in the
UNIX script file.

I've had great success with importing the EPSF into Word, Powerpoint
and MacDraw Pro. It allows me to easily add annotation to my IDL plots.
It even works with color postscript.

I also noticed "ps2epsplus" at the U. Of Michigan Mac archive. I haven't
tried it yet, but this might be an alternative solution.

<URL:ftp://mirror.aol.com/pub/mac/util/text/>

For you PC users, use Archie to find the package "ps2epsf". The approach
is similar, however a TIFF preview is generated instead of a PICT preview to
be compatible with PC applications instead of Mac applications.

Good luck!
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Scroll w/o repaint OR pixmap allocation limits?
Next Topic: Re: 1)analog #define in IDL? 2) get position of a window?

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

Current Time: Sat Oct 11 10:07:28 PDT 2025

Total time taken to generate the page: 0.64095 seconds