PostScript has been called "an unappreciated yet superb general purpose computing language".
You can write a PostScript program using any text editor. Here's the familiar "Hello World" program in PostScript:
|
POSTSCRIPT LANGUAGE REFERENCE
The Red Book, Third Edition (912 pages, Addison-Wesley, 1999; ISBN 0201379228) (US Dollars) $50.00
This is the definitive reference from Adobe Systems, covering every aspect of PS programming, including Level 3 PostScript.
Also available
here as a 7.4MB PDF
Updates are available here
|
|
POSTSCRIPT BY EXAMPLE
by Henry McGilton & Mary Compione (640 pages, Addison-Wesley, 1992; ISBN 0-201-63228-4) (US Dollars) $37.00
Written in a clear, easy-to-understand style, this book is packed with examples and explanations. The most comprehensive introductory PS book available, and the only one that includes PS Level 2.
Programs from this book are available here
|
|
POSTSCRIPT LANGUAGE TUTORIAL AND COOKBOOK
The Blue Book, by Adobe Systems Inc. (256 pages, Addison-Wesley, 1986; ISBN 0-201-10179-3) (US Dollars) $27.00
An introduction to the elements of PS programming, plus a cookbook of practical examples, such as re-encoding a font. (PS Level 1 only)
Also available here as an 850K PDF
Programs from this book are available here
|
|
POSTSCRIPT LANGUAGE PROGRAM DESIGN
The Green Book, by Glenn C. Reid (240 pages, Addison-Wesley, 1988; ISBN 0-201-14396-8) (US Dollars) $27.00
A formal introduction to PS programming, including more advanced topics. (PS Level 1 only)
"A pretty hard-core book for those with serious PostScript programming to do." --Glenn C. Reid
Also available here as an 850K PDF
|
|
THINKING IN POSTSCRIPT
by Glenn Reid (Addison-Wesley, 1990; now out of print)
Programming style for the serious programmer: How to use the PostScript language as it was designed to be used.
Available here as an 850K PDF
|
PostScript Programs
Dylan McNamee's webpage has some PS toys that
are both fun and useful. If you want to see some handcrafted PS code, check these out: a calendar maker, a very handy font viewer (shows every character and glyph in the font, even those not in the encoding vector), a utility for plotting graphs, a quicksort routine, and a program for adding a big watermark to any document background.
Graham Freeman has written PS programs for typesetting, drawing family trees, and producing color separations.
Jamie Zawinski's PS programs print labels for audio, DAT, 8mm, and VHS cassettes, CDs and their cases.
Cameron Morland has PS programs that generate Fractals and Karnaugh maps.
Maurizio Loreti has PS programs for printing calendars.
Oskar Schirmer has written programs for producing a polyhedron calendar and for computing the date of Easter Sunday.
Frank Siegert's PS program calculates pi to over a quarter-million decimal places.
Anders Karlsson has written a web server in PostScript.
The comp.sources.postscript newsgroup has been defunct for some time, but the archives contain a variety of hand-coded PS programs.
Using PostScript with Other Programming Languages
FORTRAN
PSPLOT is a library of Fortran-callable subroutines for
creating PostScript graphics files.
http://www.nova.edu/ocean/psplot.html
C
CGRAPH lets you create PostScript graphics files from your C
program.
http://totoro.berkeley.edu/software/A_Cgraph.html
GNU PLOTUTILS has similar capabilities. (Unix)
http://www.gnu.org/software/plotutils/plotutils.html
JAVA
Marco Schmidt's web page has Java resources for creating and rendering PS and PDF documents.
http://www.geocities.com/marcoschmidt.geo/java-image-coding.html#documents
LISP
PLISP is a compiler that generates PS from Lisp.
http://www.cs.cmu.edu/afs/cs/project/ai-repository/ai/lang/lisp/code/io/plisp/0.html
MANY PROGRAMMING LANGUAGES
PGPLOT plots PS from C, C++, Fortran, Perl, Python, and other programming languages.
http://astro.caltech.edu/~tjp/pgplot/
Online Reference
POSTSCRIPT LANGUAGE REFERENCE ONLINE
Every command for Level-2 PostScript. If you don't have a copy of the
Red Book handy, look here:
http://atrey.karlin.mff.cuni.cz/~milanek/PostScript/Reference/
Classes
PostScript and Acrobat/PDF
From beginner to advanced, half day to 5 days.
http://www.acumentraining.com/
Newsletter
John Deubert's Acumen Journal is a free monthly technical newsletter with information on programming PostScript and using Acrobat. Topics have included "Adding Characters to a Type 1 Font", "Reencoding Fonts", and "Concatenating PostScript Files". Current and past issues:
http://www.acumentraining.com/Acumen_Journal.html
PostScript Programming Questions
Newsgroups
comp.lang.postscript
fr.comp.lang.postscript (French)
fj.comp.lang.postscript (Japanese)