Department of Mathematics FAS Harvard University One Oxford Street Cambridge MA 02138 USA Tel: (617) 495-2171 Fax: (617) 495-5132
FAS Computer Services to Harvard University IT: (617) 495-7777.
Postscript (PS) is a programming language for printing graphics and text. Encapsulated PostScript (EPS) allows to include images into a postscript document. You can view a PS document with gv (or ghostview) and print it with lpr . Unlike PDF (also of Adobe) a simple text editor or a little C program suffices to produce professional graphics or text. PS can then be translated into PDF (with the command ps2pdf in Unix, by Adobe Distiller on PC or Mac).
Much about this programming language PS can be learend from examples like . An simple example to draw a . The file shows the programming language feature. It is simple to make bumper stickers like , to make score sheets for chess (by N. Elkies ). Postscript is a programming language able to do any computation. Here is an implemntation of life.
Because PS files are ASCII text, they can easily be modified by programs. The Perl script watermark.perl (used as> for example adds a watermark on each page. The script twopage.perl puts two pages on one. Examples, how C programs can write PS files can be found on C.T.McMullen's page .


Frequently asked questions

Question Answer
I have a PS file with 234 pages from which I want to extract the pages 3,4,7,20 ?
 pstops 1000:3,4,7,20> 
generates a file containing all pages which are 3,4,7,20 modulo 1000.
I want to save paper and convert a PS file into a file which contains 2 original pages on each new page.
 pstops "2:0L@.7(21cm,0)+1L@.7(21cm,12.85cm)" > 
does the job.
How do I convert a PS file into a PDF file?
gives a PDF file in.pdf.
How do I convert a PS file into an animated GIF movie in.gif containing in each frame a page of the PS file?
convert in.gif 

Simplicity, Clarity, Generality B.W. Kernighan, R. Pike, in "The Practice of Programming".