This module allows to create PostScript documents. It has many similarities with the pdf extension. Actually the API is almost identical and one can in many cases just replace the prefix of each function from pdf_ to ps_. This also works for functions which has no meaning in the PostScript document (like adding hyperlinks) but will have an effect if the document is converted to PDF.
Documents created by this extension are sometimes even superior to documents created with the pdf extension, because pslib's text rendering functions can handle kerning, hyphenation and ligatures which results in much better output of boxed text.
Замечание: You will need to get the ps library (pslib) available at http://pslib.sourceforge.net.
The following two tables lists all constants defined by the ps extension.
Таблица 1. Contants for line caps
Таблица 2. Contants for line joins
A short installation note:
You need at least PHP 4.3.0 and pslib >= 0.1.12
Just type 'pear install ps' in your console.