fdf_create
(PHP 4, PHP 5 < 5.3.0, PECL fdf SVN)
fdf_create — Create a new FDF document
Description
fdf_create ( ) : resource
Creates a new FDF document.
This function is needed if one would like to populate input fields in a PDF document with data.
Return Values
Returns a FDF document handle, or false
on error.
Examples
Example #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"); ?>
See Also
- fdf_close() - Close an FDF document
- fdf_save() - Save a FDF document
- fdf_open() - Open a FDF document
© 1997–2020 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/function.fdf-create.php