Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: printing graphs to PDF under program control


From   Phil Schumm <[email protected]>
To   [email protected]
Subject   Re: st: printing graphs to PDF under program control
Date   Sat, 16 Oct 2004 18:30:00 -0500

At 4:27 PM -0400 10/16/04, Kit Baum wrote:
If you do graph export foo.pdf on Mac OS X, it just works. No Distiller needed (in fact no Acrobat needed; Preview comes with the OS, and although it doesn't have all of the features of the full (and costly) Acrobat package...

In addition to using Distiller, it should presumably also be possible to create a PostScript file from within Stata and then use ps2pdf (a shell script which uses Ghostscript to convert PostScript files to PDF). I use ps2pdf occasionally, though since I do most of my work on OS X I haven't needed it for Stata graphs (as Kit notes above), and thus haven't tried it (perhaps someone else has some experience here?). Of course you won't have all the options you have with Distiller, but the advantage is that the same method would work on any platform Ghostscript runs on (virtually all). And using -shell- you could easily drive this from within Stata.


-- Phil
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/




© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index