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

Home » Public Forums » archive » Re: Object graphics and real postscript
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 and real postscript [message #19434 is a reply to message #19429] Mon, 27 March 2000 00:00 Go to previous messageGo to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Nicolas Decoster (Nicolas.Decoster@noveltis.fr ) writes:

> I'm new in IDL and I am currently trying to figure how I can do
> beautyfull graphs using object graphics. It looks like these objects
> allow to draw almost everything I need. But the bad thing is that I did
> not find how I can export my drawing into a postscript file. In fact
> there is a way to create an EPS (using ClipBoard on UNIX), but the
> result is a bitmap ! I want a real postscript with lines, curves, text,
> etc., in postscript language.
>
> Is there a way to do such a thing ?

The way I do it (on Windows NT) is like this:

printer = Obj_New('IDLgrPrinter')
ok = Dialog_PrinterSetup(printer)

I get a dialog for my Lexmark PostScript printer. One of
the options on the dialog is "Send Output to File". With
that checked, it pulls up another dialog that asks me
what the name of the file should be, and I simply write
to the Printer device. I get a nice PostScript file.

It is *not*, however, encapsulated PostScript.

And, unless I am mistaken, the clipboard object also does
not support encapsulated PostScript, but rather just PostScript
if the PostScript keyword is set on the Draw method.

My Windows NT Ghostview, however, has the ability to convert
a PostScript file to an encapsulated PostScript file. I presume
this is also available in the UNIX version of Ghostscript.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: MRI processing
Next Topic: spawn broken on IDL 5.3 / solaris ?

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

Current Time: Sun Oct 12 08:49:03 PDT 2025

Total time taken to generate the page: 0.95560 seconds