note 61324 deleted from function.fdf-set-file by betz
| From: | betz@php.net | Date: | Sun, 12 Feb 2006 21:00:54 +0000 |
| Subject: | note 61324 deleted from function.fdf-set-file by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-103580@lists.php.net to get a copy of this message | ||
Note Submitter: n.siebert at econnex dot de
Reason: integrated
----
The example code here has got three bugs hidden in it. If you want your first time fdf experience to
be more exciting than mine, you'd rather use the following snippet:
<?php
/* set content type for Adobe FDF */
fdf_header();
/* start new fdf */
$fdf = fdf_create();
/* set field "foo" to value "bar" */
fdf_set_value($fdf, "foo", "bar");
/* tell client to display FDF data using "fdf_form.pdf" */
fdf_set_file($fdf, "http://www.example.com/fdf_form.pdf");
/* output fdf */
fdf_save($fdf);
/* clean up */
fdf_close($fdf);
?>
That gets you going from the start!
Cheers
Norb