array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'es', ), 'this' => array ( 0 => 'function.fdf-create.php', 1 => 'fdf_create', ), 'up' => array ( 0 => 'ref.fdf.php', 1 => 'FDF Funciones', ), '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' => 'en', 'path' => 'reference/fdf/functions/fdf-create.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_create — Create a new FDF document
Creates a new FDF document.
This function is needed if one would like to populate input fields in a PDF document with data.
Esta función no tiene parámetros.
Returns a FDF document handle, or false
on error.
Ejemplo #1 Populating a PDF document
<?php
$outfdf = fdf_create();
fdf_set_value($outfdf, "volume", $volume, 0);
fdf_set_file($outfdf, "http:/testfdf/resultlabel.pdf");
fdf_save($outfdf, "outtest.fdf");
fdf_close($outfdf);
Header("Content-type: application/vnd.fdf");
$fp = fopen("outtest.fdf", "r");
fpassthru($fp);
unlink("outtest.fdf");
?>