How to Change a PHP Form to PDF
A Portable Document Format (PDF) creation tool is required to change and convert documents and Web pages to PDF. The industry standard tool for creating, editing, securing and managing PDF documents is the full version of the Adobe Acrobat application. PHP forms are Web-based forms that are generated with PHP code. PHP code dynamically generates HTML pages and these HTML pages may be captured and converted into PDF documents. Adobe Acrobat enables the user to print Web pages to PDF using the "Print" function of any browser, or to convert Web pages by using the "Convert to Web Page" function if the Adobe Acrobat Toolbar is installed with Internet Explorer. (The toolbar is installed during the initial installation of Adobe Acrobat).
Instructions
-
Create Adobe PDF from a Web Page Using the Print Function
-
1
Open a Web browser and navigate to the PHP form to change to PDF. Note that the PHP form must be viewable through a Web browser. The Print to PDF function will be initiated through the browser.
-
2
Click the "File" option on the top menu bar of the browser.
-
-
3
Click the "Print" option on the File menu.
-
4
Select the "Adobe PDF" option from the Printer Name dropdown box and click "OK." A File Save window will launch.
-
5
Navigate to a location to save the new PDF.
-
6
Type a name for the new PDF into the File Name input box.
-
7
Click the File Type button and select "Save as PDF" from the dropdown box.
-
8
Click the "Save" button to create and save the PDF. Adobe Acrobat will generate the document, and then display the new PDF in the Adobe Acrobat interface.
-
9
View and verify the PDF.
Create Adobe PDF from a Web Page Using Convert to PDF Toolbar Option
-
10
Open a browser and navigate to the PHP web page to convert to PDF.
-
11
Click the downward arrow next to the Adobe icon on the browser toolbar.
-
12
Select "Convert Web pages to PDF" from the dropdown list. A File Save window will open.
-
13
Type a name for the new PDF.
-
14
Navigate to the location where the new PDF will be saved and click the "Save" button.
-
15
Verify the PDF by viewing in a PDF viewer.
-
1
References
- Photo Credit website layout image by 6922Designer from Fotolia.com