ps_restore

(PECL ps >= 1.1.0) Restore previously save context bool ps_restore ( resource $psdoc ) Restores a previously saved graphics context. Any call of ps_save() must be accompanied by a call to ps_restore(). All coordinate transformations, line style settings, color settings, etc. are being restored to the state before the call of ps_save(). Parameters: psdoc Resource identi

ps_rect

(PECL ps >= 1.1.0) Draws a rectangle bool ps_rect ( resource $psdoc, float $x, float $y, float $width, float $height ) Draws a rectangle with its lower left corner at (x, y). The rectangle starts and ends in its lower left corner. If this function is called outside a path it will start a new path. If it is called within a path it will add the rectangle as a subpath. If the last drawing operation does not end in the lower

ps_place_image

(PECL ps >= 1.1.0) Places image on the page bool ps_place_image ( resource $psdoc, int $imageid, float $x, float $y, float $scale ) Places a formerly loaded image on the page. The image can be scaled. If the image shall be rotated as well, you will have to rotate the coordinate system before with ps_rotate(). Parameters: psdoc Resource identifier of the postscript file

ps_open_memory_image

(PECL ps >= 1.1.0) Takes an GD image and returns an image for placement in a PS document int ps_open_memory_image ( resource $psdoc, int $gd ) Parameters: psdoc Resource identifier of the postscript file as returned by ps_new(). gd Resource identifier of the postscript file as returned by ps_new().

ps_open_image

(PECL ps >= 1.1.0) Reads an image for later placement int ps_open_image ( resource $psdoc, string $type, string $source, string $data, int $lenght, int $width, int $height, int $components, int $bpc, string $params ) Reads an image which is already available in memory. The parameter source is currently not evaluated and assumed to be memory. The image data is a sequence of pixels starting in th upper left corner and endin

ps_open_image_file

(PECL ps >= 1.1.0) Opens image from file int ps_open_image_file ( resource $psdoc, string $type, string $filename [, string $stringparam [, int $intparam = 0 ]] ) Loads an image for later use. Parameters: psdoc Resource identifier of the postscript file as returned by ps_new(). type The type of the image. Possible values are png, jp

ps_open_file

(PECL ps >= 1.1.0) Opens a file for output bool ps_open_file ( resource $psdoc [, string $filename ] ) Creates a new file on disk and writes the PostScript document into it. The file will be closed when ps_close() is called. Parameters: psdoc Resource identifier of the postscript file as returned by ps_new(). filename The name of the

ps_new

(PECL ps >= 1.1.0) Creates a new PostScript document object resource ps_new ( void ) Creates a new document instance. It does not create the file on disk or in memory, it just sets up everything. ps_new() is usually followed by a call of ps_open_file() to actually create the postscript document. Returns: Resource of PostScript document or FALSE on failure. The return value is passed to all othe

ps_moveto

(PECL ps >= 1.1.0) Sets current point bool ps_moveto ( resource $psdoc, float $x, float $y ) Sets the current point to new coordinates. If this is the first call of ps_moveto() after a previous path has been ended then it will start a new path. If this function is called in the middle of a path it will just set the current point and start a subpath. Parameters: psdoc R

ps_makespotcolor

(PECL ps >= 1.1.0) Create spot color int ps_makespotcolor ( resource $psdoc, string $name [, int $reserved = 0 ] ) Creates a spot color from the current fill color. The fill color must be defined in rgb, cmyk or gray colorspace. The spot color name can be an arbitrary name. A spot color can be set as any color with ps_setcolor(). When the document is not printed but displayed by an postscript viewer the given color in th