PECL ps >= 1.2.0
ps_begin_template - Start a new template
Code Examples

ps_begin_template( resource$psdoc, float$width, float$height ): int

Starts a new template. A template is called a form in the postscript language. It is created similar to a pattern but used like an image. Templates are often used for drawings which are placed several times through out the document, e.g. like a company logo. All drawing functions may be used within a template. The template will not be drawn until it is placed by ps_place_image.



Resource identifier of the postscript file as returned by ps_new.


The width of the template in pixel.


The height of the template in pixel.

Return Values

Returns true on success or false on failure.

Related Functions

Example of ps_begin_template

Show all examples for ps_begin_template

PHP Version:

Function ps_begin_template:

PostScript document creation Functions

Most used PHP functions