fdf_create

fdf_create -- Create a new FDF document

Description

int fdf_create(void );

The fdf_create() creates a new FDF document. This function is needed if one would like to populate input fields in a PDF document with data.

Example 1. Populating a PDF document

  1 
  2 <?php
  3 $outfdf = fdf_create();
  4 fdf_set_value($outfdf, "volume", $volume, 0);
  5 
  6 fdf_set_file($outfdf, "http:/testfdf/resultlabel.pdf");
  7 fdf_save($outfdf, "outtest.fdf");
  8 fdf_close($outfdf);
  9 Header("Content-type: application/vnd.fdf");
 10 $fp = fopen("outtest.fdf", "r");
 11 fpassthru($fp);
 12 unlink("outtest.fdf");
 13 ?>
 14      

See also fdf_close(), fdf_save(), fdf_open().