<?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-set-file.php',
    1 => 'fdf_set_file',
    2 => 'Definiert ein PDF-Dokument, das FDF-Daten anzeigen soll',
  ),
  'up' => 
  array (
    0 => 'ref.fdf.php',
    1 => 'FDF',
  ),
  'prev' => 
  array (
    0 => 'function.fdf-set-encoding.php',
    1 => 'fdf_set_encoding',
  ),
  'next' => 
  array (
    0 => 'function.fdf-set-flags.php',
    1 => 'fdf_set_flags',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'de',
    'path' => 'reference/fdf/functions/fdf-set-file.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.fdf-set-file" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">fdf_set_file</h1>
  <p class="verinfo">(PHP 4, PHP 5 &lt; 5.3.0, PECL fdf SVN)</p><p class="refpurpose"><span class="refname">fdf_set_file</span> &mdash; <span class="dc-title">Definiert ein PDF-Dokument, das FDF-Daten anzeigen soll</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.fdf-set-file-description">
  <h3 class="title">Beschreibung</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>fdf_set_file</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> <code class="parameter">$fdf_document</code></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$url</code></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$target_frame</code><span class="initializer"> = ?</span></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="simpara">
   Wählt ein anderes PDF-Dokument aus, in dem FDF-Formulardaten angezeigt werden
   sollen, als das Formular dem sie entstammen.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.fdf-set-file-parameters">
  <h3 class="title">Parameter-Liste</h3>
  <dl>
   
    <dt><code class="parameter">fdf_document</code></dt>
    <dd>
     <span class="simpara">
      Das FDF-Dokument-Handle, das von <span class="function"><a href="function.fdf-create.php" class="function">fdf_create()</a></span>,
      <span class="function"><a href="function.fdf-open.php" class="function">fdf_open()</a></span> oder <span class="function"><a href="function.fdf-open-string.php" class="function">fdf_open_string()</a></span>
      zurückgegeben wurde.
     </span>
    </dd>
   
   
    <dt><code class="parameter">url</code></dt>
    <dd>
     <span class="simpara">
      Sollte als absolute URL angegeben werden.
     </span>
    </dd>
   
   
    <dt><code class="parameter">target_frame</code></dt>
    <dd>
     <span class="simpara">
      Der Rahmen in dem das Dokument angezeigt werden soll, kann mit diesem
      Parameter oder <span class="function"><a href="function.fdf-set-target-frame.php" class="function">fdf_set_target_frame()</a></span> festgelegt
      werden.
     </span>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.fdf-set-file-returnvalues">
  <h3 class="title">Rückgabewerte</h3>
  <p class="simpara">
   Gibt bei Erfolg <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> zurück. Bei einem Fehler wird <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> zurückgegeben.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.fdf-set-file-examples">
  <h3 class="title">Beispiele</h3>
  <div class="example" id="example-1">
   <p><strong>Beispiel #1 FDF-Daten an ein zweites Formular übergeben</strong></p>
   <div class="example-contents">
<div class="cdata"><pre>
&lt;?php
  /* Inhaltstyp für Adobe FDF festlegen */
  fdf_header();

  /* neues FDF beginnen */
  $fdf = fdf_create();

  /* Feld &quot;foo&quot; auf Wert &quot;bar&quot; setzen */
  fdf_set_value($fdf, &quot;foo&quot;, &quot;bar&quot;);

  /* den Client anweisen, FDF-Daten unter Verwendung von &quot;fdf_form.pdf&quot; anzuzeigen */
  fdf_set_file($fdf, &quot;http://www.example.com/fdf_form.pdf&quot;);

  /* FDF ausgeben */
  fdf_save($fdf);

  /* aufräumen */
  fdf_close($fdf);
?&gt;
</pre></div>
   </div>

  </div>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.fdf-set-file-seealso">
  <h3 class="title">Siehe auch</h3>
  <ul class="simplelist">
   <li><span class="function"><a href="function.fdf-get-file.php" class="function" rel="rdfs-seeAlso">fdf_get_file()</a> - Gibt den Wert des /F Schl&uuml;ssels zur&uuml;ck</span></li>
   <li><span class="function"><a href="function.fdf-set-target-frame.php" class="function" rel="rdfs-seeAlso">fdf_set_target_frame()</a> - Set target frame for form display</span></li>
  </ul>
 </div>


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