ps_string_geometry

(PECL ps >= 1.2.0) Gets geometry of a string array ps_string_geometry ( resource $psdoc, string $text [, int $fontid = 0 [, float $size = 0.0 ]] ) This function is similar to ps_stringwidth() but returns an array of dimensions containing the width, ascender, and descender of the text. Parameters: psdoc Resource identifier of the postscript file as returned by ps_new(

ps_show

(PECL ps >= 1.1.0) Output text bool ps_show ( resource $psdoc, string $text ) Output a text at the current text position. The text position can be set by storing the x and y coordinates into the values textx and texty with the function ps_set_value(). The function will issue an error if a font was not set before with ps_setfont(). ps_show() evaluates the following parameters and values as set by ps_set_parameter() and p

ps_show2

(PECL ps >= 1.1.0) Output a text at current position bool ps_show2 ( resource $psdoc, string $text, int $len ) Output text at the current position. Do not print more than len characters. Parameters: psdoc Resource identifier of the postscript file as returned by ps_new(). text The text to be output. len

ps_show_xy

(PECL ps >= 1.1.0) Output text at given position bool ps_show_xy ( resource $psdoc, string $text, float $x, float $y ) Output a text at the given text position. Parameters: psdoc Resource identifier of the postscript file as returned by ps_new(). text The text to be output. x x-coordinate of the lo

ps_show_xy2

(PECL ps >= 1.1.0) Output text at position bool ps_show_xy2 ( resource $psdoc, string $text, int $len, float $xcoor, float $ycoor ) Returns: Returns TRUE on success or FALSE on failure. This function is currently not documented; only its argument list is available.

ps_show_boxed

(PECL ps >= 1.1.0) Output text in a box int ps_show_boxed ( resource $psdoc, string $text, float $left, float $bottom, float $width, float $height, string $hmode [, string $feature ] ) Outputs a text in a given box. The lower left corner of the box is at (left, bottom). Line breaks will be inserted where needed. Multiple spaces are treated as one. Tabulators are treated as spaces. The text will be hyphenated if the para

ps_shfill

(PECL ps >= 1.3.0) Fills an area with a shading bool ps_shfill ( resource $psdoc, int $shadingid ) Fills an area with a shading, which has to be created before with ps_shading(). This is an alternative way to creating a pattern from a shading ps_shading_pattern() and using the pattern as the filling color. Parameters: psdoc Resource identifier of the postscript file as

ps_shading

(PECL ps >= 1.3.0) Creates a shading for later use int ps_shading ( resource $psdoc, string $type, float $x0, float $y0, float $x1, float $y1, float $c1, float $c2, float $c3, float $c4, string $optlist ) Creates a shading, which can be used by ps_shfill() or ps_shading_pattern(). The color of the shading can be in any color space except for pattern. Parameters: psdoc

ps_shading_pattern

(PECL ps >= 1.3.0) Creates a pattern based on a shading int ps_shading_pattern ( resource $psdoc, int $shadingid, string $optlist ) Creates a pattern based on a shading, which has to be created before with ps_shading(). Shading patterns can be used like regular patterns. Parameters: psdoc Resource identifier of the postscript file as returned by ps_new().

ps_setpolydash

(PECL ps >= 1.1.0) Sets appearance of a dashed line bool ps_setpolydash ( resource $psdoc, float $arr ) Sets the length of the black and white portions of a dashed line. ps_setpolydash() is used to set more complicated dash patterns. Parameters: psdoc Resource identifier of the postscript file as returned by ps_new(). arr arr is a li