Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ps_new(3) [php man page]

PS_NEW(3)								 1								 PS_NEW(3)

ps_new - Creates a new PostScript document object

SYNOPSIS
resource ps_new (void ) DESCRIPTION
Creates a new document instance. It does not create the file on disk or in memory, it just sets up everything. ps_new(3) is usually fol- lowed by a call of ps_open_file(3) to actually create the postscript document. RETURN VALUES
Resource of PostScript document or FALSE on failure. The return value is passed to all other functions as the first argument. SEE ALSO
ps_delete(3). PHP Documentation Group PS_NEW(3)

Check Out this Related Man Page

PS_SETPOLYDASH(3)							 1							 PS_SETPOLYDASH(3)

ps_setpolydash - Sets appearance of a dashed line

SYNOPSIS
bool ps_setpolydash (resource $psdoc, float $arr) DESCRIPTION
Sets the length of the black and white portions of a dashed line. ps_setpolydash(3) is used to set more complicated dash patterns. PARAMETERS
o $psdoc - Resource identifier of the postscript file as returned by ps_new(3). o $arr -$arr is a list of length elements alternately for the black and white portion. RETURN VALUES
Returns TRUE on success or FALSE on failure. EXAMPLES
Example #1 Drawing a dashed line <?php $ps = ps_new(); if (!ps_open_file($ps, "polydash.ps")) { print "Cannot open PostScript file "; exit; } ps_set_info($ps, "Creator", "polydash.php"); ps_set_info($ps, "Author", "Uwe Steinmann"); ps_set_info($ps, "Title", "Poly dash example"); ps_begin_page($ps, 596, 842); ps_setpolydash($ps, array(10, 5, 2, 5)); ps_moveto($ps, 100, 100); ps_lineto($ps, 200, 200); ps_stroke($ps); ps_end_page($ps); ps_delete($ps); ?> This example draws a line with a 10 and 2 points long line, and gaps of 5 points inbetween. SEE ALSO
ps_setdash(3). PHP Documentation Group PS_SETPOLYDASH(3)
Man Page