<?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 => 'fr',
  ),
  'this' => 
  array (
    0 => 'function.ps-new.php',
    1 => 'ps_new',
    2 => 'Cr&eacute;e un nouvel objet document PostScript',
  ),
  'up' => 
  array (
    0 => 'ref.ps.php',
    1 => 'Fonctions 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' => 'fr',
    '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">Crée un nouvel objet document PostScript</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.ps-new-description">
  <h3 class="title">Description</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">
   Crée une nouvelle instance de document. Elle ne crée pas le fichier sur le
   disque ou dans la mémoire. Elle prépare simplement tout.
   <span class="function"><strong>ps_new()</strong></span> est normalement suivie par un appel de
   <span class="function"><a href="function.ps-open-file.php" class="function">ps_open_file()</a></span> pour créer le document PostScript.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.ps-new-parameters">
  <h3 class="title">Liste de paramètres</h3>
  <p class="para">Cette fonction ne contient aucun paramètre.</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.ps-new-returnvalues">
  <h3 class="title">Valeurs de retour</h3>
  <p class="para">
   Ressource d&#039;un document PostScript ou <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> si une erreur survient. La valeur de
   retour est passée à toutes les autres fonctions en tant que premier
   argument.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.ps-new-seealso">
  <h3 class="title">Voir aussi</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> - Supprime toutes les ressources d'un document PostScript</span></li>
   </ul>
  </p>
 </div>

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