PHP's FDF document support _php Tutorial

Source: Internet
Author: User
Tags fdf
The interaction on www means filling out a form, clicking the Submit button, and then getting a definite result. HTML and HTTP provide a mechanism to perform such operations easily through forms.
PHP supports this mechanism in a very convenient way, and the value of each input field (the input box of the form) 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 the Acrobat form. From the user's point of view, the HTML form and the Acrobat table
The only difference is their appearance. The former uses HTML documents, which use PDF documents to present the form.

To develop a web interface, Acrobat forms can also be processed like an HTML form, if the form provides input data as an HTML form. However, Adobe has already made the table singular
It is proposed that a new format is 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 the Acrobat form. PDF documents are used as forms and PDF documents are generated in PHP using data in
Described in this post. You'll find out how easy these two examples are.

Before you start trying the online example in this article, you will 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 enable the FDF support in PHP to take effect.

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

Over the past few years, Adobe has developed a Portable Document format (PDF) and expanded it. An extension is an acrobat that promises the user to enter data and send it to the server for processing
form, just like an HTML form.
Such a PDF document is similar to a static PDF document, but when you look at it with the 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 input fields, check boxes, and so on.
Creating such a PDF form requires Acrobat Exchange 3.x or the new Acrobat 4 software, but unfortunately they 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 called when it is pressed. This is very much like HTML, but the difference is in the format when the data is delivered to the server.
When the submit button is pressed, the data is transferred from the HTML form in a deterministic 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 interpreted 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 domain by name.
FDF data is typically present in PHP's Http_raw_post_data variable (just as HTML data is stored in http_poat_data)
The actual assignment of the data is done in a PHP script, whereas the HTML commit data is assigned in the PHP engine.

To get the look of an FDF data, here is an example: the original file from the online copy of this, I can not see the garbled is what, but if put in the English system can see it?


http://www.bkjia.com/PHPjc/445091.html www.bkjia.com true http://www.bkjia.com/PHPjc/445091.html techarticle the interaction on www means filling out a form, clicking the Submit button, and then getting a definite result. HTML and HTTP provide a mechanism to perform such operations easily through forms. PHP with a very ...

  • Related Article

    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.