Please wait while we load your page...

Tools

PHP Manual [fdf_create]

Protect Your Website Today


PHP Manual || FDF Functions

(PHP 4, PHP 5 < 5.3.0, PECL fdf SVN)

fdf_createCreate a new FDF document

Description

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.

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

See Also



PHP Manual || FDF Functions