uTools-Manuals/docs/php/ps_new.html
2019-04-08 23:22:26 +08:00

49 lines
2.0 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Creates a new PostScript document object</title>
</head>
<body class="docs"><div id="layout">
<div id="layout-content"><div id="function.ps-new" class="refentry">
<div class="refnamediv">
<h1 class="refname">ps_new</h1>
<p class="verinfo">(PECL ps &gt;= 1.1.0)</p><p class="refpurpose"><span class="refname">ps_new</span> &mdash; <span class="dc-title">Creates a new PostScript document object</span></p>
</div>
<div class="refsect1 description" id="refsect1-function.ps-new-description">
<h3 class="title">说明</h3>
<div class="methodsynopsis dc-description">
<span class="methodname"><strong>ps_new</strong></span>
( <span class="methodparam">void</span>
) : <span class="type">resource</span></div>
<p class="para rdfs-comment">
Creates a new document instance. It does not create the file on disk or in
memory, it just sets up everything. <span class="function"><strong>ps_new()</strong></span> is usually
followed by a call of <span class="function"><a href="ps_open_file.html" class="function">ps_open_file()</a></span> to actually create
the postscript document.
</p>
</div>
<div class="refsect1 returnvalues" id="refsect1-function.ps-new-returnvalues">
<h3 class="title">返回值</h3>
<p class="para">
Resource of PostScript document 或者在失败时返回 <strong><code>FALSE</code></strong>. The return value
is passed to all other functions as the first argument.
</p>
</div>
<div class="refsect1 seealso" id="refsect1-function.ps-new-seealso">
<h3 class="title">参见</h3>
<p class="para">
<ul class="simplelist">
<li class="member"><span class="function"><a href="ps_delete.html" class="function" rel="rdfs-seeAlso">ps_delete()</a> - Deletes all resources of a PostScript document</span></li>
</ul>
</p>
</div>
</div></div></div></body></html>