• PHP Video Tutorials

PHP - FDF Create Module



The fdf_create() function can create a new FDF document.

Syntax

resource fdf_create( void )

The fdf_create() function is needed if one would like to populate input fields in a PDF document with data. This function can return an FDF document handle or false on error.

Example

$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");
php_function_reference.htm
Advertisements