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

Home » Public Forums » archive » Re: Coyote Graphics PDF Files
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: Coyote Graphics PDF Files [message #78599] Wed, 07 December 2011 05:50
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Kenneth P. Bowman writes:

> Macs come with pstopdf installed in /usr/bin/.
>
> When you double-click a PS file in the Mac Finder, it runs
> pstopdf and opens the resulting file in the Preview app.
>
> I recommend using that if the !version.os is darwin.

OK, I have this program now running on my Windows machine,
a Mac, and a LINUX distribution. But God only knows how
general purpose it is! :-)

I realize that almost everyone has their own favorite
way of making a PDF file from a PostScript file. I'm
not out to reinvent the world. I just want to have a
fairly general solution so I can make PDF files directly
from a cgWindow.

I have incorporated Ken's advice to use pstopdf on
the Macs. It has been suggested that I use epstopdf
on Ubuntu machines, where it is standard. Is this
standard on other UNIX machines?

I've made the program available in a "beta" form, if you
would like to test it on your machine:

http://www.idlcoyote.com/misc/cgps2pdf.pro

Code like this should make it work and result in a "test.pdf"
file:

PS_Start, File='test.ps'
cgHistoplot, cgDemoData(7), /Fill
PS_End
cgPS2PDF, 'test.ps'

Thanks!

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Coyote Graphics PDF Files [message #78608 is a reply to message #78599] Tue, 06 December 2011 11:50 Go to previous message
Kenneth P. Bowman is currently offline  Kenneth P. Bowman
Messages: 585
Registered: May 2000
Senior Member
In article <MPG.2947ffaeaba72659989926@news.giganews.com>,
David Fanning <news@dfanning.com> wrote:

> Folks,
>
> I have written a new program, cgPS2PDF, to create
> PDF files from PostScript intermediary files. It requires
> Ghostscript be installed on your machine. (This is free
> software.)
>
> I have it working for Windows, and it should also work
> for UNIX and Macs, but I haven't tested it. I'm looking
> for a couple of volunteers to test it before I add it
> to my Coyote Graphics routines.

Macs come with pstopdf installed in /usr/bin/.

When you double-click a PS file in the Mac Finder, it runs
pstopdf and opens the resulting file in the Preview app.

I recommend using that if the !version.os is darwin.

Ken
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: interpolation
Next Topic: Re: Constructing integer variables from two bytes?

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

Current Time: Wed Oct 08 15:11:04 PDT 2025

Total time taken to generate the page: 0.00615 seconds