ps_lineto

(PECL ps >= 1.1.0) Draws a line bool ps_lineto ( resource $psdoc, float $x, float $y ) Adds a straight line from the current point to the given coordinates to the current path. Use ps_moveto() to set the starting point of the line. Parameters: psdoc Resource identifier of the postscript file as returned by ps_new(). x x-coordinate of

ps_include_file

(PECL ps >= 1.3.4) Reads an external file with raw PostScript code bool ps_include_file ( resource $psdoc, string $file ) Parameters: psdoc Resource identifier of the postscript file as returned by ps_new(). file Resource identifier of the postscript file as returned by ps_new(). Returns: Returns TRUE on succe

ps_hyphenate

(PECL ps >= 1.1.1) Hyphenates a word array ps_hyphenate ( resource $psdoc, string $text ) Hyphenates the passed word. ps_hyphenate() evaluates the value hyphenminchars (set by ps_set_value()) and the parameter hyphendict (set by ps_set_parameter()). hyphendict must be set before calling this function. This function requires the locale category LC_CTYPE to be set properly. This is done when the extension is initialized b

ps_get_value

(PECL ps >= 1.1.0) Gets certain values float ps_get_value ( resource $psdoc, string $name [, float $modifier ] ) Gets several values which were set by ps_set_value(). Values are by definition float values. The parameter name can have the following values. fontsize The size of the currently active font or the font whose identifier is passed in parameter modifier. font The currently active font itself. imagew

ps_get_parameter

(PECL ps >= 1.1.0) Gets certain parameters string ps_get_parameter ( resource $psdoc, string $name [, float $modifier ] ) Gets several parameters which were directly set by ps_set_parameter() or indirectly by one of the other functions. Parameters are by definition string values. This function cannot be used to retrieve resources which were also set by ps_set_parameter(). The parameter name can have the following values

ps_get_buffer

(PECL ps >= 1.1.0) Fetches the full buffer containig the generated PS data string ps_get_buffer ( resource $psdoc ) This function is not implemented yet. It will always return an empty string. The idea for a later implementation is to write the contents of the postscript file into an internal buffer if in memory creation is requested, and retrieve the buffer content with this function. Currently, documents created in memor

ps_findfont

(PECL ps >= 1.1.0) Loads a font int ps_findfont ( resource $psdoc, string $fontname, string $encoding [, bool $embed = false ] ) Loads a font for later use. Before text is output with a loaded font it must be set with ps_setfont(). This function needs the adobe font metric file in order to calculate the space used up by the characters. A font which is loaded within a page will only be available on that page. Fonts which

ps_fill

(PECL ps >= 1.1.0) Fills the current path bool ps_fill ( resource $psdoc ) Fills the path constructed with previously called drawing functions like ps_lineto(). Parameters: psdoc Resource identifier of the postscript file as returned by ps_new(). Returns: Returns TRUE on success or FALSE on failure.

ps_fill_stroke

(PECL ps >= 1.1.0) Fills and strokes the current path bool ps_fill_stroke ( resource $psdoc ) Fills and draws the path constructed with previously called drawing functions like ps_lineto(). Parameters: psdoc Resource identifier of the postscript file as returned by ps_new(). Returns: Returns TRUE on success or FALSE on failure.

ps_end_template

(PECL ps >= 1.2.0) End a template bool ps_end_template ( resource $psdoc ) Ends a template which was started with ps_begin_template(). Once a template has been ended, it can be used like an image. Parameters: psdoc Resource identifier of the postscript file as returned by ps_new(). Returns: Returns TRUE on success or FALSE on failure.