Using:
<?php
$fdf = fdf_create();
fdf_set_file($fdf, "/sjensen/pdf/test.pdf");
fdf_set_value($fdf, "YourName","Steve");
fdf_set_file($fdf, "http://172.16.128.200/sjensen/pdf/test.pdf");
Header("Content-type: application/vnd.fdf");
header("Cache-Control: public");
fdf_save($fdf);
fdf_close($fdf);
?>
All I can get is Mozilla to give me a save/open choice, with "the file pdf.php is of application/vnd.fdf (php script) " . If I save and rename it from .php to .pdf, I can't open it - all I get is "invalid pdf" file.
Any ideas, or a pointer to a good tutorial on filling out PDF forms dynamically with PHP?