PostScript can do more — much more — than describe where to put ink on paper.
It's also a programming language, with variables, arrays, conditionals, and a stack. Not to mention superb vector graphics and fonts.
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:
%!PS |
To run a program, all you need is a PostScript interpreter such as Ghostscript.
This article is divided in the following chapters:
» Online PostScript Tutorials
» PostScript File Format Specification
» Books on PostScript Programming
» PostScript Programs
» PostScript with Other Programming Languages
» Online reference and Troubleshooting PostScript Errors
» PostScript Training and Consulting
» PostScript Programming Questions
Want to write your own PS programs? Learn the basics for free, right here on the web:
» A First Guide to PostScript by P.J. Weingartner (Univ. of Indiana) A nicely written twelve-chapter primer, now in its fifth edition.
» PostScript Tutorial by Paul Bourke (Univ. of Western Australia) A one-page introduction to PS programming.
» PostScript Programming Tutorials (Interface Technologies Inc.) Short, concentrated tutorials that get you going real quick. (Free registration required.)
» Tom Greer's Articles contain an introduction to elementary PS programming, including how to cache PS content you want to re-use, and how to merge data with a PDF form.
» Practical PostScript by David Byram-Wigfield An introduction to using PostScript to display and format text, including columns, line-wrap, justification, footnotes, and fonts. Typeset your own book for printing or distilling to PDF. (PDF, 92 pages)
» PostScript Quick Tips by Herb Weiner. An introduction to PostScript divided into 7 Chapters all downloadable in PDF files. PostScript subjects brought up include: Creating a Background Text Message, Printing Font Samples anc Converting PostScript to EPS
» The PostScript FAQ by Allen Braunsdorf. Lots of information on PostScript divided into subjects covering areas such as: PostScript General Questions, PostScript Formats and Conversions, PostScript Fonts, Programming in Postscript and Encapsulated PostScript (EPS)
You can download the PostScript Printer Description File Format Specification (Version 4.3 in PDF) directly here!
![]() |
PostScript Language Reference |
![]() |
PostScript By Example |
![]() |
PostScript Language Tutorial and Cookbook |
![]() |
PostScript Language Program Design |
![]() |
Thinking In PostScript |
![]() |
Mathematical Illustrations: A manual of Geometry and PostScript |
![]() |
Learning PostScript by Doing |
![]() |
Adobe 1 Font Format |
![]() |
PostScript and PDF Acrobat |
» Gernot Hoffmann has lots of PS programs for graphing sine, gamma, Bezier, and other curves, as well as chromaticity diagrams and 3-D plots.
» John Deubert has a PostScript and Acrobat Resources page with lots of code samples.
» 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.
» Evan Danaher has written John Conway's Game of Life in PS.
» Maurizio Loreti has PS programs for printing calendars in English and Italian.
» Oskar Schirmer has written programs for producing a polyhedron calendar and for computing the date of Easter Sunday.
» Peter Billam has subroutines for drawing in PS, a Perl program for typesetting music in PS, and compares the PS and Perl programming languages.
» Frank Siegert's PS program calculates pi to over a quarter-million decimal places.
» Anders Karlsson has written a web server in PostScript!
» Julian Wiseman has a page with a lot of examples of PostScript Routines
The comp.sources.postscript newsgroup has been defunct for some time, but the
archives contain a variety of hand-coded PS programs.
If you want to see what the source code for a PostScript interpreter looks like,
take a look at
Ghostscript.
» PSPLOT is a library of Fortran-callable subroutines for creating PostScript graphics files.
» CGRAPH lets you create PostScript graphics files from your C program.
» GNU PLOTUTILS has similar capabilities. (Unix)
» PSLIB creates PS graphics and text.
» Marco Schmidt's web page has links to Java resources for creating and rendering PS and PDF documents.
» Python PS is a Python module for creating PS documents.
» PostScript::Simple lets you create and print PS documents from Perl. You can also find it in your local CPAN mirror.
» PECL-PS is an extension for creating PS in PHP.
» PLISP is a compiler that generates PS from Lisp.
» PGPLOT plots PS from C, C++, Fortran, Perl, Python, and other programming languages.
If you don't have a copy of the Red Book handy, look at the below links:
» PostScript reference 3 , you can also check this Error Message FAQ.
» Laurens Leurs PS troubleshooting page with information about PostScript errors and possible work arounds.
» Acumen Training is a technical training company offering engineering-level courses in the PostScript language and the PDF file format. Instructor John Deubert has worked with PostScript for over twenty years, having been an Adobe employee during its start-up days. Acumen Training also produces the popular Acumen Journal, which contains articles on PostScript programming. Current and pas issues are available online
» SoftHorizons doing PostScript, GhostScript, PDF and PCL programming
» Tom Greer: Personalized PS training
Newsgroups:
» English Code Comments PS Forum
Ink Stores
Printer Cartridges
Printer Brands
Ink & Toner
Printer & Printing Articles
Ads