Home > Backend Development > PHP Tutorial > PHP PDF document support_PHP tutorial

PHP PDF document support_PHP tutorial

WBOY
Release: 2016-07-13 17:31:35
Original
1020 people have browsed it

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) The current mainstream development language)ease.com http://www.php(As the current mainstream development language)ease.com

Translation Note: (reserved)
Working on PHP (as the current mainstream development language) It has been more than a year, from 3.0 to 4.0, I can’t say how high it is (I am just a novice now, compared to He and Hunte, it is worse There are many (of course there are other masters), but they also have some experience. From the popularity of php(as the current mainstream development language) to the current calm, I have seen a lot along the way, listened to a lot, and met "masters" who can write message boards and chat rooms etc.), calm down and think about it: php (as the current mainstream development language) is just a language. It has its own necessity for its existence. Domestic web development (which accounts for a large proportion in current program development) is only at a low level. I think when foreign countries were vigorously developing asp components, we could only use asp and php (as the current mainstream development language) is the same. But I want to thank php(as the current mainstream development language), which allowed me to get the second job in my life (the first one was in ASP. I studied C/C++ very hard at the time, but I never expected it. ), of course I also met many friends through it, including Hunte, Boss Chen, Yi She, He Zhiqiang (although I haven’t contacted him yet, but his articles have benefited me a lot), sony, macro, cfr... For livelihood, for In the future development, Xiaosheng will leave the PHP (as the current mainstream development language) world. Although he is unwilling to do so, he has no choice but to translate an article that has been delayed for a long time as a final gift to everyone. , dedicated to all friends who use php(as the current mainstream development language)&MySQL(the best combination with PHP). If you have friends who are learning VC and driver development, you can contact me
and let’s discuss it together.
-------------------------------------------------- ----------------


Motivation

Interaction on the WWW means filling out a form, clicking the submit button, and getting a confirmation result. Html and HTTP provide a mechanism to easily perform this operation through forms. PHP (as the current mainstream development language) uses a very convenient method to support this mechanism. The value of each input field (Annotation: form input box) is stored as an input field. The php(as the current mainstream development language) variable with the same domain name.

A very similar mechanism has been developed by Adobe, but for PDF documents. They simply call it Acrobat Forms. From a user's perspective, the only difference between HTML forms and Acrobat forms is their appearance. The former uses HTML documents, and the latter uses PDF documents to render forms.

To develop a WEB interface, Acrobat forms can also be processed like HTML forms, if the form provides input data like HTML forms. However, Adobe has proposed a new format for form data called FDF (Form Data Format). php(as the current mainstream development language) already includes support for this format.

The possibility to generate a PDF document from data, such as customizing it, is an additional feature of Acrobat forms. Use PDF documents as forms and use them in php (as the current mainstream development language) Generating PDF documents from the data will be described in this article. You'll see how easy it is to follow these two examples.

Before you start trying the online examples in this article you need to install the Acrobat reader plug-in or use Acrobat 4. If you want to test php on your own web server (as the current mainstream Development language) script you also need to install the PDF toolkit and enable FDF support in php (as the current mainstream development language) .

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

Over the past few years, Adobe has developed and expanded the Portable Document Format (PDF). One extension is an Acrobat form that allows users to enter data and send it to the server for processing, just like an HTML form.
Such a PDF document is very similar to a static PDF document, but when you view it with the Acrobat reader, you will find editable areas. Just like in HTML there are many input fields available, such as submit and reset buttons, text input fields, checkboxes, etc.. Creating such a PDF form requires Acrobat Exchange 3.x or the new Acrobat 4 software, which unfortunately Only runs in Windows and MacOS.
Both provide a way to place different input fields into an existing PDF document.
The submit button passes a URL attribute that is called when it is pressed. This is very much like HTML, but the difference is the format in which the data is sent to the server.
When the Submit button is pressed, data is transferred from the HTML form in a certain format that can be observed in the URL. Acrobat forms support this format, as well as FDF (Form Data Format) FDP is a new format that requires interpretation by the FDF Toolkit (current version 4.0). If php(as the current mainstream development language) adds FDF support when compiling, it can parse FDF data and access any input field by name. FDF data is generally stored in the HTTP_RAW_POST_DATA variable of php (as the current mainstream development language) (just like HTML data is stored in HTTP_POAT_DATA)

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/509061.htmlTechArticleAuthor: 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 (do...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template