Previous | Next | (P-PDF) Forms & FDF
Topic: FDF Toolkit Installation in PHP under UNIX OS
Conf: (P-PDF) Forms & FDF, Msg: 27591
From: gigowiz
Date: 9/25/2001 08:03 AM
Having used the toolkit (with C programs) I think it's easier to just create the FDF output.
For example:
$fdfdata = "%FDF-1.2\n%??n";
$fdfdata .= "1 0 obj << /FDF ";
$fdfdata .= "<< /Fields [";
... (while looping through database fields) ...
$fdfdata .= "<< /V ("; /* Set the value of the fdf field */
$str = chop($name_array["t_fname"]); /* Get rid of trailing spaces */
$fdfdata .= $str; /* Print the value */
$fdfdata .= ") /T (fname"; /* Print the field title */
$fdfdata .= "$i"; /* Finish the title name */
$fdfdata .= ") >> "; /* Done with that field */
...
$fdfdata .= "/F (http://) >>";
$fdfdata .= ">>\nendobj\ntrailer\n<<\n/Root 1 0 R\n>>\n";
$fdfdata .= "%%EOF";
header ("Content-Type: application/vnd.fdf");
print ($fdfdata);
Hank