<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/book.fdf.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'uk',
  ),
  'this' => 
  array (
    0 => 'intro.fdf.php',
    1 => 'Вступ',
    2 => 'Вступ',
  ),
  'up' => 
  array (
    0 => 'book.fdf.php',
    1 => 'FDF',
  ),
  'prev' => 
  array (
    0 => 'book.fdf.php',
    1 => 'FDF',
  ),
  'next' => 
  array (
    0 => 'fdf.setup.php',
    1 => 'Встановлення/налаштування',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/fdf/book.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="intro.fdf" class="preface">
  <h1 class="title">Вступ</h1>
  <p class="simpara">
   Forms Data Format (FDF) is a format for handling
   forms within PDF documents. You should read the documentation at 
   <a href="http://www.adobe.com/devnet/acrobat/fdftoolkit.html" class="link external">&raquo;&nbsp;http://www.adobe.com/devnet/acrobat/fdftoolkit.html</a>
   for more information on what FDF is and how it is used in general.
  </p>
  <p class="simpara">
   The general idea of FDF is similar to HTML forms. The difference is
   basically the format how data is transmitted to the server when the submit
   button is pressed (this is actually the Form Data Format) and the format
   of the form itself (which is the Portable Document Format, PDF).
   Processing the FDF data is one of the features provided by the fdf
   functions. But there is more.  One may as well take an existing PDF form
   and populated the input fields with data without modifying the form
   itself. In such a case one would create a FDF document
   (<span class="function"><a href="function.fdf-create.php" class="function">fdf_create()</a></span>) set the values of each input field
   (<span class="function"><a href="function.fdf-set-value.php" class="function">fdf_set_value()</a></span>) and associate it with a PDF form
   (<span class="function"><a href="function.fdf-set-file.php" class="function">fdf_set_file()</a></span>). Finally it has to be sent to the
   browser with MimeType <code class="literal">application/vnd.fdf</code>. The Acrobat
   reader plugin of your browser recognizes the MimeType,  reads the
   associated PDF form and fills in the data from the FDF document.
  </p>

  <p class="simpara">
   If you look at an FDF-document with a text editor you will find a
   catalogue object with the name <code class="literal">FDF</code>. Such an object may
   contain a number of entries like <code class="literal">Fields</code>,
   <code class="literal">F</code>, <code class="literal">Status</code> etc..
   The most commonly used entries are <code class="literal">Fields</code> which points
   to a list of input fields, and <code class="literal">F</code> which contains the
   filename of the PDF-document this data belongs to. Those entries are
   referred to in the FDF documentation as /F-Key or /Status-Key.
   Modifying this entries
   is done by functions like <span class="function"><a href="function.fdf-set-file.php" class="function">fdf_set_file()</a></span> and
   <span class="function"><a href="function.fdf-set-status.php" class="function">fdf_set_status()</a></span>. Fields are modified with
   <span class="function"><a href="function.fdf-set-value.php" class="function">fdf_set_value()</a></span>, <span class="function"><a href="function.fdf-set-opt.php" class="function">fdf_set_opt()</a></span> etc..
  </p>
 </div><?php manual_footer($setup); ?>