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

Home » Public Forums » archive » Object Graphics --> EPS Output how?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Object Graphics --> EPS Output how? [message #26783 is a reply to message #26732] Wed, 26 September 2001 19:39 Go to previous messageGo to previous message
Mark Hadfield is currently offline  Mark Hadfield
Messages: 783
Registered: May 1995
Senior Member
From: "David Fanning" <david@dfanning.com>
> Mark Hadfield (m.hadfield@niwa.cri.nz) writes:
>
>> Output destination & format is controlled through keywords to
>> the IDLgrClipboard::Draw method. To send EPS output to a file
>> the basic sequence of operations is
>>
>> myview = [Create & populate your IDLgrView here]
>> myclipbrd = obj_new('IDLgrClipBoard']
>> myclipbrd->Draw, /VECTOR, /POSTSCRIPT, FILENAME=...
>> obj_destroy, myclipbrd
>
> I just point out what is probably obvious: this
> produces PostScript output, not *encapsulated*
> PostScript output as was requested in the original
> post.

Well you'd think so, wouldn't you?

On my system (IDL 5.4, Windows 2000), the above commands generate a text
file which begins something like this...

%!PS-Adobe-2.0 EPSF-1.2
%%Title: Clipboard Image
%%Creator: IDL
%%BoundingBox: 0 0 344 344
gsave

...followed by a lot of Postscript commands ending with...

end
grestore
showpage

From my (admittedly limited) knowledge of Postscript this is a valid EPS
file. It has the required comment at the beginning and it has a Bounding Box
specification. If you give the file the extension ".eps" then it seems to
*behave* like an EPS file. It can be imported into MS Word (resulting in the
infamous plain box) and into LaTeX documents. When I open it with GSview
with the "EPS Warn" option turned on, there are no warnings (implying, I
think that GSview has found none of the operators forbidden to EPS files).

I have been treating these files as EPS for quite some time and never run
into any problems.

BTW, here are a couple of links with info about EPS

http://www-cdf.fnal.gov/offline/PostScript/AdobePS.html#EPS
http://www-cdf.fnal.gov/offline/PostScript/EPSF.ps

Section 5.3 of the latter has some handy info about the "showpage" command.
The presence of this command at the end of the file above means that it
produces output when sent straight to a printer. An application that
encapsulates an EPS file is expected to deactivate the showpage command
temporarily so that more than one of them can be displayed on a page.

---
Mark Hadfield
m.hadfield@niwa.cri.nz http://katipo.niwa.cri.nz/~hadfield
National Institute for Water and Atmospheric Research




--
Posted from clam.niwa.cri.nz [202.36.29.1]
via Mailgate.ORG Server - http://www.Mailgate.ORG
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL 5.4 and win2000 problems
Next Topic: Re: Input Buffer Error Reading in Large ascii Files

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

Current Time: Wed Oct 08 13:52:37 PDT 2025

Total time taken to generate the page: 0.00430 seconds