Interaction on the WWW often means filling out forms, hitting the submit
button and getting a certain result. HTML and HTTP provide a mechanism to perform
this quite easily through forms. PHP has support for this
mechanism in a very convenient way. The
values of each input field are stored in PHP variables, with the same
name as the input field.
A mechanism quite similar has been developed by
Adobe, but for PDF documents. They simply
call it Acrobat Forms. From the users point of view, the only difference in HTML
forms and Acrobat forms is their appearance. The first one
uses HTML documents, while the second one uses PDF documents to present
the form.
For developers of web interfaces, Acrobat Forms can be handled
like HTML forms, if the form provides its input data as HTML forms. However, Adobe
has introduced a new format for form data called FDF (Form Data Format).
PHP already includes support for this format.
The possibility to
populate a PDF document with data, e.g. to customize it, is an additional feature of Acrobat Forms. .
Using PDF documents as forms and populating PDF documents with
data using PHP will be described in this article. Two examples demonstrate
how easy it is.
Before you start trying the online examples in this article
you should install the
Acrobat Reader Plug-in or use Acrobat 4. If you want to test the PHP scripts
on your own web server you will also need to install the
FDF Toolkit and
enable FDF support in PHP. Finally, if you want to develop your own PDF forms
you will need Acrobat Exchange 3.x or Acrobat 4.
| Comments: |
| RE: How about submitting HTML form to PDF? | Movses Kiredjian | 07/25/07 06:43 |
| using fdf for loading image dynamically | bosheng | 06/27/05 12:38 |
| Error Messages | kim | 07/20/04 12:55 |
| RE: Add data to an existing PDF and print it | Pinoy | 05/18/03 22:10 |
| RE: WORD.DOC to PDF | Charles | 12/10/02 22:57 |
| RE: Enabling FDF support in PHP | MaleMan | 11/04/02 06:06 |
| nice tool to convert html to pdf | David Feliu | 10/13/02 05:54 |
| WORD.DOC to PDF | stash | 09/20/02 11:54 |
| submit forms across a network | Chris | 09/07/02 00:25 |
| FDF and IE | Abhijit | 08/12/02 12:19 |
| PDF/FDF and PHP | Pete Maguire | 08/07/02 12:26 |
| Add data to an existing PDF and print it out? | Jo Hammerstein | 08/07/02 10:28 |
| RE: use fdf files with Access? | Dharmendra Sharma | 08/02/02 22:36 |
| comment generer du pdf ŕ partir | rachid | 08/01/02 05:06 |
| RE: FDF, PHP, multi page document | Anurag Verma | 07/12/02 05:57 |
| RE: Looking for tools for creating pdf forms | Rick Holbert | 07/10/02 10:01 |
| RE: fdf_open fails | Abhijit | 07/04/02 20:49 |
| RE: problem with pdf_open() | Dean Grant | 05/28/02 10:35 |
| Looking for tools for creating pdf forms | jbv | 05/27/02 16:23 |
| Again about Enabling FDF support in PHP | Marco | 05/25/02 08:33 |
| Is it possible to publish FDF data to HTML? | Mike | 04/29/02 11:29 |
| RE: FDF, PHP, multi page document | sowmya | 04/26/02 01:26 |
| use fdf files with Access? | ERRESSE | 04/13/02 15:55 |
| RE: Internet Explorer and PDF/FDF | André | 04/03/02 11:05 |
| RE: Internet Explorer and PDF/FDF | Ned Wolfenbarger | 04/02/02 17:33 |
| RE: Internet Explorer and PDF/FDF | greg greenhaw | 04/01/02 15:44 |
| RE: FDF, PHP, multi page document | Mario Rui | 02/14/02 11:12 |
| RE: Internet Explorer and PDF/FDF | Dave Turnbull | 01/17/02 16:41 |
| Filling PDFs - FDF or Javascript | Greg Greenhaw | 12/27/01 19:34 |
| FDF & Javascript | Greg Greenhaw | 12/27/01 19:29 |
| RE: fdf_open fails | Joe Mainolfi | 11/13/01 16:34 |
| Configuring PHP and FDF | Joe Mainolfi | 11/12/01 12:54 |
| Where data sent are stored? | Enzosan | 10/09/01 06:49 |
| RE: Enabling FDF support in PHP | Christopher Chan | 09/21/01 04:31 |
| fdf_open fails | omprakash | 09/08/01 12:22 |
| $HTTP_RAW_POST_DATA is empty | David | 08/09/01 11:07 |
| FDF, php 4.0.6 (cgi/isapi), windows 2000, ii5 | Hans Soeharso | 08/06/01 11:53 |
| RE: how to subit html form to php? | Jim Henderson | 06/25/01 13:19 |
| how to subit html form to php? | thamilselvan | 06/18/01 22:14 |
| Enabling FDF support in PHP | Mark Anderson | 06/13/01 05:49 |
| fdf in jsp ... | sanjeev | 04/27/01 07:43 |
| Wrong version? | Michael A. Peters | 02/26/01 16:35 |
| RE: Adobe's files don't work | John Gerstenslager | 02/19/01 07:27 |
| FDF, PHP, multi page document | wilfrid gaboriaud | 02/19/01 05:53 |
| Adobe's files don't work | John Gerstenslager | 02/18/01 19:37 |
| RE: How about submitting HTML form to PDF? | Oliver Klink | 02/08/01 04:20 |
| RE: How about submitting HTML form to PDF? | Erick Schmidt | 01/26/01 13:00 |
| RE: generating PDF from common document forma | Max Wyss | 01/07/01 17:18 |
| RE: How about submitting HTML form to PDF? | Max Wyss | 01/07/01 17:07 |
| problem with pdf_open() | Alf Magne Kalleland | 01/04/01 08:13 |
| Examples don't work with blank fields | Girvan Bell | 12/14/00 07:23 |
| The examples are broken | alain | 12/09/00 01:13 |
| RE: Internet Explorer and PDF/FDF | alain | 12/09/00 01:01 |
| Internet Explorer and PDF/FDF | Girvan Bell | 12/04/00 07:18 |
| how to check pdf file width and height in php | ricky | 12/02/00 05:23 |
| RE: How about submitting HTML form to PDF? | Adam | 11/30/00 15:15 |
| RE: generating PDF from common document forma | Rick Holbert | 11/29/00 14:30 |
| More PHP/PDF | John Gallagher | 11/22/00 03:57 |
| FDF not writing files | Chad W. Skinner | 11/21/00 14:47 |
| FDF & NN6 | Antonio Cavedoni | 11/21/00 11:57 |
| generating PDF from common document formats | Ben Munoz | 11/20/00 22:14 |
| RE: How about submitting HTML form to PDF? | Jon Busch | 11/20/00 21:37 |
| Thanks for the example | Jefferey Garrett | 11/17/00 12:24 |
| How about submitting HTML form to PDF? | Rex Byrns | 11/17/00 10:43 |
| Your examples don't work | Chester Bullock | 11/17/00 09:55 |
|
If you are looking for help, please post on the appropriate forum here. Your questions will be answered much more quickly.
|