array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'pt_BR', ), 'this' => array ( 0 => 'function.fdf-open.php', 1 => 'fdf_open', ), 'up' => array ( 0 => 'ref.fdf.php', 1 => 'FDF Funções', ), 'prev' => array ( 0 => 'function.fdf-open-string.php', 1 => 'fdf_open_string', ), 'next' => array ( 0 => 'function.fdf-remove-item.php', 1 => 'fdf_remove_item', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/fdf/functions/fdf-open.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 4, PHP 5 < 5.3.0, PECL fdf SVN)
fdf_open — Open a FDF document
Opens a file with form data.
You can also use fdf_open_string() to process the results of a PDF form POST request.
filename
Path to the FDF file. This file must contain the data as returned from a PDF form or created using fdf_create() and fdf_save().
Returns a FDF document handle, or false
on error.
Exemplo #1 Accessing the form data
<?php
// Save the FDF data into a temp file
$fdffp = fopen("test.fdf", "w");
fwrite($fdffp, $HTTP_FDF_DATA, strlen($HTTP_FDF_DATA));
fclose($fdffp);
// Open temp file and evaluate data
$fdf = fdf_open("test.fdf");
/* ... */
fdf_close($fdf);
?>