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

st: ps2pdf.ado


From   "Dimitriy V. Masterov" <dvmaster@lily.src.uchicago.edu>
To   statalist@hsphsun2.harvard.edu
Subject   st: ps2pdf.ado
Date   Wed, 10 Nov 2004 22:39:01 -0600 (CST)

A number of people have expressed some interest in exporting stata
graphs to a pdf format, so I put together a program which will "distill" a
single pdf file from one or more ps files in a specified folder on a
Windows PC. It will only work with Adobe Ver4.0 and up, though maybe
that's not the case. In case this matters, I usually export graphs
like this:

graph export fig1.ps, mag(175) orientation(landscape)
fontface(Garamond) replace logo(off) tmargin(.5) lmargin(.5);

To use ps2pdf, type "ps2pdf C:/.../outputfilename.txt". This will
produce a file named outputfilename.txt which will be used by Adobe
Distiller to yield outputfilename.pdf, which will contain ALL of the ps
files in C:/.../. Most importantly, ALL of the ps files as well as the
outputfilename.txt will be ERASED, since I hate to do this myself.

You can download it from
http://lily.src.uchicago.edu/~dvmaster/FILES/Stata/ps2pdf.ado

Please send me comments and suggestions or just mess with it yourself.
Parts of it are pretty inelegant, but it seems to work on my PC.

DVM

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index