<?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 => 'it',
  ),
  'this' => 
  array (
    0 => 'function.ps-add-bookmark.php',
    1 => 'ps_add_bookmark',
    2 => 'Add bookmark to current page',
  ),
  'up' => 
  array (
    0 => 'ref.ps.php',
    1 => 'PS Funzioni',
  ),
  'prev' => 
  array (
    0 => 'ref.ps.php',
    1 => 'PS Funzioni',
  ),
  'next' => 
  array (
    0 => 'function.ps-add-launchlink.php',
    1 => 'ps_add_launchlink',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/ps/functions/ps-add-bookmark.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.ps-add-bookmark" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">ps_add_bookmark</h1>
  <p class="verinfo">(PECL ps &gt;= 1.1.0)</p><p class="refpurpose"><span class="refname">ps_add_bookmark</span> &mdash; <span class="dc-title">Add bookmark to current page</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.ps-add-bookmark-description">
  <h3 class="title">Descrizione</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>ps_add_bookmark</strong></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> <code class="parameter">$psdoc</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$text</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$parent</code><span class="initializer"> = 0</span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$open</code><span class="initializer"> = 0</span></span><br>): <span class="type"><a href="language.types.integer.php" class="type int">int</a></span></div>

  <p class="para rdfs-comment">
   Adds a bookmark for the current page. Bookmarks usually appear in
   PDF-Viewers left of the page in a hierarchical tree. Clicking on a
   bookmark will jump to the given page.
  </p>
  <p class="para">L&#039;annotazione non sarà visibile se il documento
è stampato o visualizzato, ma verrà mostrata se il documento è convertito in
pdf da Acrobat Distiller™ o Ghostview.</p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.ps-add-bookmark-parameters">
  <h3 class="title">Elenco dei parametri</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">psdoc</code></dt>
     <dd>
      <p class="para">
       Resource identifier of the postscript file
       as returned by <span class="function"><a href="function.ps-new.php" class="function">ps_new()</a></span>.
      </p>
     </dd>
    
    
     <dt><code class="parameter">text</code></dt>
     <dd>
      <p class="para">
       The text used for displaying the bookmark.
      </p>
     </dd>
    
    
     <dt><code class="parameter">parent</code></dt>
     <dd>
      <p class="para">
       A bookmark previously created by this function which
       is used as the parent of the new bookmark.
      </p>
     </dd>
    
    
     <dt><code class="parameter">open</code></dt>
     <dd>
      <p class="para">
       If <code class="parameter">open</code> is unequal to zero the bookmark will
       be shown open by the pdf viewer.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.ps-add-bookmark-returnvalues">
  <h3 class="title">Valori restituiti</h3>
  <p class="para">
   The returned value is a reference for the bookmark. It is only used if
   the bookmark shall be used as a parent. The value is greater zero if
   the function succeeds. In case of an error zero will
   be returned.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.ps-add-bookmark-seealso">
  <h3 class="title">Vedere anche:</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.ps-add-launchlink.php" class="function" rel="rdfs-seeAlso">ps_add_launchlink()</a> - Adds link which launches file</span></li>
    <li><span class="function"><a href="function.ps-add-pdflink.php" class="function" rel="rdfs-seeAlso">ps_add_pdflink()</a> - Adds link to a page in a second pdf document</span></li>
    <li><span class="function"><a href="function.ps-add-weblink.php" class="function" rel="rdfs-seeAlso">ps_add_weblink()</a> - Adds link to a web location</span></li>
   </ul>
  </p>
 </div>

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