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

Home » Public Forums » archive » Writing a plot in PDF format from IDL
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
Writing a plot in PDF format from IDL [message #43450] Thu, 14 April 2005 18:01 Go to next message
kirkland is currently offline  kirkland
Messages: 2
Registered: April 2005
Junior Member
Does someone know how (if it is possible) to write a plot in
PDF format from IDL ?
Re: Writing a plot in PDF format from IDL [message #43544 is a reply to message #43450] Fri, 15 April 2005 08:42 Go to previous messageGo to next message
jm is currently offline  jm
Messages: 32
Registered: April 2003
Member
Also in Mac OS X, you can go via Omnigraffle. Drop the eps onto an
Omnigraffle pane, then copy/paste the rendered image onto a Keynote or
Pages pane. Of course, you can add annotation to the graphic.

You can also export to PDF from Omnigraffle (say, for import to
Texshop). Seems to make much more compact PDFs that pstopdf. No need
for a license provided the number of objects is less than 20.

-John Mardaljevic
Re: Writing a plot in PDF format from IDL [message #43558 is a reply to message #43450] Fri, 22 April 2005 08:29 Go to previous message
David Jackson is currently offline  David Jackson
Messages: 8
Registered: October 2003
Junior Member
"David Fanning" <davidf@dfanning.com> wrote in message
news:MPG.1cd1827c1d7a30289899d9@news.frii.com...
> Here is what I just did to create a PDF file directly
> from IDL on my Windows machine:
>
> (1) Downloaded the *free* CutePDF Writer software from the
> fine folks at Globalscape. (Great FTP software, too!)
>
> http://www.cutepdf.com/
>
> (2) Typed the following commands in IDL:
>
> IDL> set_plot, 'printer'
> IDL> a=dialog_printersetup()
>
> At this point I selected the CutePDF Writer from my list of printers.
>
> IDL> Plot, findgen(11)
> IDL> Device, /Close
>
> Whala! A PDF document with my graphics was created! Easy, easy, easy!!

If you happen to have Adobe Acrobat, then you can just choose Adobe PDF in
the printer choice and this works just as easily!

DJ
Re: Writing a plot in PDF format from IDL [message #43575 is a reply to message #43450] Thu, 21 April 2005 09:28 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

> If wishes were horses, beggars would ride. :-)

Whoa! I spoke too soon. :-)

Here is what I just did to create a PDF file directly
from IDL on my Windows machine:

(1) Downloaded the *free* CutePDF Writer software from the
fine folks at Globalscape. (Great FTP software, too!)

http://www.cutepdf.com/

(2) Typed the following commands in IDL:

IDL> set_plot, 'printer'
IDL> a=dialog_printersetup()

At this point I selected the CutePDF Writer from my list of printers.

IDL> Plot, findgen(11)
IDL> Device, /Close

Whala! A PDF document with my graphics was created! Easy, easy, easy!!

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Re: Writing a plot in PDF format from IDL [message #43576 is a reply to message #43450] Thu, 21 April 2005 08:16 Go to previous message
Ken Mankoff is currently offline  Ken Mankoff
Messages: 158
Registered: February 2000
Senior Member
On Wed, 20 Apr 2005, kirkland wrote:
> This I know, but how could I write it directly from IDL without
> using a converter.

The PDF specs are publicly availabel on the Adobe site. Learn the
protocol and write it out. The good news is I hear it is much easier
to write a PDF than it is to read them.

-k.
Re: Writing a plot in PDF format from IDL [message #43588 is a reply to message #43450] Thu, 21 April 2005 02:49 Go to previous message
karo is currently offline  karo
Messages: 7
Registered: April 2005
Junior Member
Why not printing directly on Adobe PDF printer? It comes with Acrobat!

Regards
Karsten
Re: Writing a plot in PDF format from IDL [message #43592 is a reply to message #43450] Wed, 20 April 2005 20:06 Go to previous message
Kenneth P. Bowman is currently offline  Kenneth P. Bowman
Messages: 585
Registered: May 2000
Senior Member
In article <1114050083.560319.239110@o13g2000cwo.googlegroups.com>,
"kirkland" <aaamblard@yahoo.fr> wrote:

>> Write Postscript and then use one of many methods to convert to PDF
>> (Adobe Distiller, pstopdf, Illustrator, ...). Under Mac OS X, just
>> double-click the PS file.
>>
>> Ken Bowman
>
>
> This I know, but how could I write it directly from IDL without using
> a converter.
>

You could ask RSI to add a PDF device driver to IDL. If they did, I
expect it would be a PS to PDF converter.

Ken Bowman
Re: Writing a plot in PDF format from IDL [message #43596 is a reply to message #43450] Wed, 20 April 2005 19:31 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
kirkland writes:

> This I know, but how could I write it directly from IDL without using
> a converter.

If wishes were horses, beggars would ride. :-)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Is there a debug tool in IDL?
Next Topic: Re: Is there a debug tool in IDL?

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

Current Time: Wed Oct 08 15:10:05 PDT 2025

Total time taken to generate the page: 0.00751 seconds