Home > PHP > Function > PS > ps_show()

ps_show()

ps_show - Output text

Syntax

bool ps_show (resource $psdoc, string $text)

Arguments

  • psdoc - Resource identifier of the postscript file as returned by ps_new().
  • text - The text to be output.

Description

Output a text at the current text position. The text position can be set by storing the x and y coordinates into the values textxand textywith the function ps_set_value(). The function will issue an error if a font was not set before with ps_setfont().

Version

PHP PECL ps >= 1.1.0

Return value

Returns TRUE on success or FALSE on failure.