Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP and PDF

Status
Not open for further replies.

DeanConsulting

Programmer
Joined
Jan 11, 2002
Messages
131
Location
US
Here is what I want to do, please tell me if this can be done and offer any suggestions.

1) I want to create a web form that has the same questions that are on a .pdf document.

2) I then want the data the customer entered on the webform to be saved to a database.

3) I then would like to be able to take that data and insert it into the existing .pdf form and allow the user to view, print, etc from the web.

Is this possible? How?


---------------------------------------
Noble D. Bell
 
It is more than possible. PHP supports to libraries which provide on-the-fly PDF creation: clibpdf and PDFlib.

There's even a PHP user-defined class, FPDF, does does not use external libraries for creating on-the-fly PDFs.


Want the best answers? Ask the best questions!

TANSTAAFL!!
 
Suggestion:
Turn your PDF into an interactive PDF that submits to your PHP script. You will have the data in $_POST. You can save it in FDF format and just load into the same form on demand.
All the user needs is the free Adobe Acrobat Reader. No need to create a different form in HTML.
 
Perhaps I have not been clear enough on my needs. I do not want to create an interactive form. I need to be able to enter information one time (ie. name, address, city, etc.) and have it populate on 14 different ALREADY created pdf documents.

Is this possible through the web and php?


---------------------------------------
Noble D. Bell
 
Yes, it is, given that the field names are identical. All you need to change is the PDF template file name into which the data is loaded.
 
Where can I find some examples on how to open a pdf template file from within PHP and be able to insert values from a database onto the pdf document(s).

---------------------------------------
Noble D. Bell
 
Read this thread:
thread434-662947

I has examples that I provded then.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top