array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'function.ps-new.php', 1 => 'ps_new', ), 'up' => array ( 0 => 'ref.ps.php', 1 => 'PS 函数', ), 'prev' => array ( 0 => 'function.ps-moveto.php', 1 => 'ps_moveto', ), 'next' => array ( 0 => 'function.ps-open-file.php', 1 => 'ps_open_file', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/ps/functions/ps-new.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PECL ps >= 1.1.0)
ps_new — Creates a new PostScript document object
Creates a new document instance. It does not create the file on disk or in memory, it just sets up everything. ps_new() is usually followed by a call of ps_open_file() to actually create the postscript document.
此函数没有参数。
Resource of PostScript document 或者在失败时返回 false
. The return value
is passed to all other functions as the first argument.