PHP PDF document Support _php Tutorial

Source: Internet
Author: User
Tags fdf php pdf
Author: Uwe Steinmann
Source: http://www.php (as the current mainstream development language) builder.com
Translator: Znsoft webmaster@php (as the current mainstream development language) Ease.com http://www.php (as the current mainstream development language) ease.com

(reserved)
PHP (as the current mainstream development language) has been more than a year, from 3.0 to 4.0, can not say how high (I am now just big rookie, compared to what, Hunte, much worse, of course, there are other masters), but also some experience. From PHP (as the current mainstream development language) of the fiery to the present calm, all the way to see more, listen to more, see the "Master" (will write message board, chat room and so on) also more, calm down a think: PHP (as the mainstream development language now) is just a language. It has its own necessity to exist. The domestic web development (in the current development of the program occupies a large proportion) also only stay in the low level, think the original foreign in the development of ASP components, we will only use asp,php (as the mainstream development language now) also. But thanks to PHP (as the mainstream development language now), it let me get the life of the second job (the first ASP, the original hard to learn C + +, how did not think of it), of course, also through it to know a lot of friends, Hunte, Chen Boss, a snake, he Zhiqiang (although so far no contact, But his article benefited me not), SONY,MACRO,CFR ... In order to make a living, for the future development, niche will leave PHP (as now mainstream development language), although reluctant, but also helpless, will drag a long time an article translated as a final gift for everyone, dedicated to all use PHP (as the mainstream development language now) &mysql ( and the best combination of PHP) friends. If you have to learn VC and drive the development of friends can and
I contacted, let's explore together.
---------------------------------------------------------------


Motivation

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 easily perform this operation through forms. PHP (as the current mainstream development language) 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 variable of PHP (the current mainstream development language) 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 a user's point of view, the only difference between an HTML form and an Acrobat form 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 presented a new format for form data called FDF (Form data format). PHP (which is now the mainstream development language) 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. A PDF document is used as a form and the data generated in PHP (as the current mainstream development language) is described in this article. You'll find out how easy these two examples are.

Before you start to try the online example in this article, you will install the Acrobat Reader plugin or use Acrobat 4. If you want to test PHP (as the current mainstream development language) script on your Web server, you should also install the PDF toolkit and make PHP (as the current mainstream development language) The FDF support is in 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 form that allows the user to enter data and send it to the server for processing, 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, and the FDF (form data format) FDP is a new format that needs to be interpreted by the FDF Toolkit (current version 4.0). If PHP (as the current mainstream development language) 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 the Http_raw_post_data variable (as in the current mainstream development language) in PHP (as in the case of HTML data stored in Http_poat_data)

http://www.bkjia.com/PHPjc/509061.html www.bkjia.com true http://www.bkjia.com/PHPjc/509061.html techarticle Author: Uwe Steinmann Source: http://www.php (as the current mainstream development language) builder.com Translator: Znsoft webmaster@php (as the current mainstream development language) Ease.com/http www.php (To do sth .)

  • 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.