FDF documentation support for PHP

Source: Internet
Author: User
Tags documentation fdf html form php script

The interaction on www means filling in a form, clicking the Submit button, and then getting a definite result. HTML and HTTP provide a mechanism to perform this operation easily through a form.
PHP supports this mechanism in a very convenient way, and the value of each input field (the form's input box) is stored as a PHP variable with the same name as the input field.

A very similar mechanism has been developed by Adobe, but it is a PDF document. They simply call it acrobat form. From a user's standpoint, HTML forms and Acrobat tables
The single only difference is their appearance. The former uses HTML documents, which use PDF documents to render the form.

To develop the Web interface, Acrobat forms can also be processed like HTML forms, if the form provides input data like an HTML form. However, Adobe has been the singular
It is proposed that a new format be called FDF (form data format). PHP already contains support for this format.

The possibility of generating a PDF document with data, such as customizing it, is an additional feature of Acrobat forms. Using a PDF document as a form and generating PDF documents in PHP with data will be
Described in this article. You'll find out how easy these two examples are.

Before you start to try the online examples in this article, you should install the Acrobat Reader plugin or use Acrobat 4. If you want to test your PHP script on your Web server
You will also install the PDF Toolkit and make FDF support in PHP effective.

Finally, if you develop your own PDF form you need Acrobat Exchange 3.x or Acrobat 4.

In the past few years, Adobe has developed a Portable Document format (PDF) and expanded it. An extension is an acrobat that promises users to enter data and deliver it to the server.
Forms, just like HTML forms.
Such a PDF document is similar to a static PDF document, but when you look at it with an Acrobat Reader, you will find editable regions.
As in HTML, there are many input fields that are valid, such as Submit and reset buttons, text entry fields, check boxes, and so on.
Creating such a PDF form requires Acrobat Exchange 3.x or new Acrobat 4 software, which unfortunately can only run in Windows and MacOS.
Both provide a way to place different input fields into an existing PDF document.
The submit button transmits the URL property that is invoked when it is pressed. This is much like HTML, but the difference is in the format when data is delivered to the server.
When the submit button is pressed, the data is transmitted from the HTML form in a definite format that can be observed in the URL. Acrobat forms support This format, as well as FDF (form data format)
The FDP is a new format that needs to be explained by the FDF Toolkit (current version 4.0). If PHP adds FDF support at compile time, it can parse the FDF data and access any input fields by name.
FDF data is commonly found in PHP's Http_raw_post_data variables (just as HTML data is stored in http_poat_data)
The actual assignment of the data is done in the PHP script, whereas the HTML submission data is assigned in the PHP engine.

To get a FDF data looks like, here is an example: (the original document from the Internet so, I can not see what is garbled, but if the English system can see it)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.