ps_set_text_pos

PECL ps >= 1.1.0
ps_set_text_pos - Sets position for text output
Manual
Code Examples

ps_set_text_pos( resource$psdoc, float$x, float$y ): bool

Set the position for the next text output. You may alternatively set the x and y value separately by calling ps_set_value and choosing textx respectively texty as the value name.

If you want to output text at a certain position it is more convenient to use ps_show_xy instead of setting the text position and calling ps_show.

Parameters

psdoc

Resource identifier of the postscript file as returned by ps_new.

x

x-coordinate of the new text position.

y

y-coordinate of the new text position.

Return Values

Returns true on success or false on failure.

Related Functions

Example of ps_set_text_pos

Show all examples for ps_set_text_pos

PHP Version:


Function ps_set_text_pos:

PostScript document creation Functions

Most used PHP functions