fdf_create

(PHP 4, PHP 5, PHP 7)

fdf_createCreate a new FDF document

说锟斤拷

fdf_create ( void ) : resource

Creates a new FDF document.

This function is needed if one would like to populate input fields in a PDF document with data.

锟斤拷锟斤拷值

Returns a FDF document handle, or FALSE on error.

锟斤拷锟斤拷

Example #1 Populating a PDF document

<?php
$outfdf 
fdf_create();
fdf_set_value($outfdf"volume"$volume0);

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");
?>

锟轿硷拷