<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.ps.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'uk',
  ),
  'this' => 
  array (
    0 => 'function.ps-new.php',
    1 => 'ps_new',
    2 => 'Creates a new PostScript document object',
  ),
  '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',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<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="type"><span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></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="function.ps-open-file.php" class="function">ps_open_file()</a></span> to actually create
   the postscript document.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.ps-new-parameters">
  <h3 class="title">Параметри</h3>
  <p class="para">У цієї функції немає
параметрів.</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><a href="reserved.constants.php#constant.false">false</a></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><span class="function"><a href="function.ps-delete.php" class="function" rel="rdfs-seeAlso">ps_delete()</a> - Deletes all resources of a PostScript document</span></li>
   </ul>
  </p>
 </div>

</div><?php manual_footer($setup); ?>