<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.fdf.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'de',
  ),
  'this' => 
  array (
    0 => 'function.fdf-create.php',
    1 => 'fdf_create',
    2 => 'Erzeugt ein neues FDF Dokument',
  ),
  'up' => 
  array (
    0 => 'ref.fdf.php',
    1 => 'FDF',
  ),
  'prev' => 
  array (
    0 => 'function.fdf-close.php',
    1 => 'fdf_close',
  ),
  'next' => 
  array (
    0 => 'function.fdf-enum-values.php',
    1 => 'fdf_enum_values',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'de',
    'path' => 'reference/fdf/functions/fdf-create.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.fdf-create" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">fdf_create</h1>
  <p class="verinfo">(PHP 4, PHP 5 &lt; 5.3.0, PECL fdf SVN)</p><p class="refpurpose"><span class="refname">fdf_create</span> &mdash; <span class="dc-title">Erzeugt ein neues FDF Dokument</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.fdf-create-description">
  <h3 class="title">Beschreibung</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>fdf_create</strong></span>(): <span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span></div>

  <p class="simpara">
   Erzeugt ein neues FDF Dokument.
  </p>
  <p class="simpara">
   Diese Funktion wird benötigt, wenn man
   Eingabefelder in einem PDF Dokument mit Daten belegen
   möchte.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.fdf-create-parameters">
  <h3 class="title">Parameter-Liste</h3>
  <p class="para">Diese Funktion besitzt keine Parameter.</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.fdf-create-returnvalues">
  <h3 class="title">Rückgabewerte</h3>
  <p class="simpara">
   Gibt ein FDF-Dokument-Handle zurück, oder <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> im Fehlerfall.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.fdf-create-examples">
  <h3 class="title">Beispiele</h3>
  <div class="example" id="example-1">
   <p><strong>Beispiel #1 Füllen von Formularwerten in einem PDF Dokument</strong></p>
   <div class="example-contents">
<div class="cdata"><pre>
&lt;?php
$outfdf = fdf_create();
fdf_set_value($outfdf, &quot;band&quot;, $band, 0);

fdf_set_file($outfdf, &quot;http:/testfdf/resultlabel.pdf&quot;);
fdf_save($outfdf, &quot;outtest.fdf&quot;);
fdf_close($outfdf);
Header(&quot;Content-type: application/vnd.fdf&quot;);
$fp = fopen(&quot;outtest.fdf&quot;, &quot;r&quot;);
fpassthru($fp);
unlink(&quot;outtest.fdf&quot;);
?&gt;
</pre></div>
   </div>

  </div>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.fdf-create-seealso">
  <h3 class="title">Siehe auch</h3>
  <ul class="simplelist">
   <li><span class="function"><a href="function.fdf-close.php" class="function" rel="rdfs-seeAlso">fdf_close()</a> - Schlie&szlig;t ein FDF Dokument</span></li>
   <li><span class="function"><a href="function.fdf-save.php" class="function" rel="rdfs-seeAlso">fdf_save()</a> - Speichern eines FDF Dokuments</span></li>
   <li><span class="function"><a href="function.fdf-open.php" class="function" rel="rdfs-seeAlso">fdf_open()</a> - &Ouml;ffnet ein FDF Dokument</span></li>
  </ul>
 </div>


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