Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Kiovi.com:
Filling in PDF Form Files with PHP
Jun 16, 2005 @ 11:38:09

Koivi.com has a handy little bit of code posted t show you how you can fill in the form fields of a PDF with the results of a regular form POST.

First, you need to have created your PDF form file. I do this using the form tools in Adobe Acrobat. Remember to name each field in your document, you will need those names later when you create the HTML form.

Next, you need to create the form fields to fill out in an HTML form. When the form is submitted, the $_POST array is passed to a function along with the location of the PDF file. The function returns the contents of an FDF file. This can them be used to write an FDF file to download an view.

The code behind it all is very simple, and this fills a little niche that might be useful to lots out there.

tagged:

Link:


Trending Topics: