Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ps_close(3) [php man page]

PS_CLOSE(3)								 1							       PS_CLOSE(3)

ps_close - Closes a PostScript document

SYNOPSIS
bool ps_close (resource $psdoc) DESCRIPTION
Closes the PostScript document. This function writes the trailer of the PostScript document. It also writes the bookmark tree. ps_close(3) does not free any resources, which is done by ps_delete(3). This function is also called by ps_delete(3) if it has not been called before. PARAMETERS
o $psdoc - Resource identifier of the postscript file as returned by ps_new(3). RETURN VALUES
Returns TRUE on success or FALSE on failure. SEE ALSO
ps_open_file(3), ps_delete(3). PHP Documentation Group PS_CLOSE(3)

Check Out this Related Man Page

PS_SET_TEXT_POS(3)							 1							PS_SET_TEXT_POS(3)

ps_set_text_pos - Sets position for text output

SYNOPSIS
bool ps_set_text_pos (resource $psdoc, float $x, float $y) DESCRIPTION
Set the position for the next text output. You may alternatively set the x and y value separately by calling ps_set_value(3) 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(3) instead of setting the text position and call- ing ps_show(3). PARAMETERS
o $psdoc - Resource identifier of the postscript file as returned by ps_new(3). o $x - x-coordinate of the new text position. o $y - y-coordinate of the new text position. RETURN VALUES
Returns TRUE on success or FALSE on failure. EXAMPLES
Example #1 Placing text at a given position <?php $ps = ps_new(); if (!ps_open_file($ps, "text.ps")) { print "Cannot open PostScript file "; exit; } ps_set_info($ps, "Creator", "rectangle.php"); ps_set_info($ps, "Author", "Uwe Steinmann"); ps_set_info($ps, "Title", "Text placement example"); ps_begin_page($ps, 596, 842); $psfont = ps_findfont($ps, "Helvetica", "", 0); ps_setfont($ps, $psfont, 8.0); ps_show_xy($ps, "Some text at (100, 100)", 100, 100); ps_set_value($ps, "textx", 100); ps_set_value($ps, "texty", 120); ps_show($ps, "Some text at (100, 120)"); ps_end_page($ps); ps_delete($ps); ?> SEE ALSO
ps_set_value(3), ps_show(3). PHP Documentation Group PS_SET_TEXT_POS(3)
Man Page