Re: Coyote Graphics PDF Files [message #78599] |
Wed, 07 December 2011 05:50 |
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  |
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
|
|
|