PHP 手册
后退 |  | 前进

# CXIV. PostScript document creation

# 简介

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 need at least PHP 4.3.0 and pslib >= 0.1.12. The ps library (pslib) is available at http://pslib.sourceforge.net/.

# 安装

A short installation note: just type

    $ pear install ps

in your console.

# 运行时配置

本扩展模块在 `php.ini` 中未定义任何配置选项。

# 预定义常量

以下常量由本扩展模块定义，因此只有在本扩展模块被编译到 PHP 中，或者在运行时被动态加载后才有效。

The following two tables lists all constants defined by the ps extension.

表格 1. Contants for line caps

Name | Meaning
--- | ---
ps_LINECAP_BUTT |
ps_LINECAP_ROUND |
ps_LINECAP_SQUARED |

表格 2. Contants for line joins

Name | Meaning
--- | ---
ps_LINEJOIN_MITER |
ps_LINEJOIN_ROUND |
ps_LINEJOIN_BEVEL |

# Contact Information

If you have comments, bugfixes, enhancements for either this extension or pslib then please drop me a mail steinm@php.net. Any help is very welcome.

后退 | 起点 | 前进
session_pgsql_status | 上一级 | ps_add_bookmark