Looking to post html form data into pdf

Hello. I have the following things: 1) a html form 2) a php form handler 3) a pdf.

The PDF is extremely complicated but my organization requires that I use the document. SO, I created an very user friendly html form that the data can be entered into and the details get emailed to me. Then I manually type the results of the form into the PDF and then email a copy to the customer for their records.

For the LIFE of me, I cannot find an alteration to the PHP script that will input the html form fields into the pdf form fields.

PLEASE HELP! (my boss wants this by tomorrow!ahh!) Does anyone have any ideas of how I can accomplish this?

Not sure if you can merge pdfs, but as an emergency solution you could just use the existing pdf as a background image.

There are other libraries like the one above, look around and see if some support easy adding of data to a pdf with fields

See the answer here

Thanks @JimL, but the link provided is referring to using the data from a db and then inserting it into the user’s PDF.

Imagine an online vacation rental site where the renter would fill out a form (the house address, the dates of rental, etc). Then, when they submit the form, a Lease Agreement (the pdf) appears with the rental specific details that they entered into the form. Then they print and keep for their records…or something like that. That is what I am trying to achieve.
I currently have my php form handler email the results of the form, but if there is some sort of insert function that will take the post variables and input them into fields on the pdf, that’s what I’m trying to accomplish.

The source of the data shouldn’t really matter. Just build the data array as they describe it with the form data instead of db data.

Sponsor our Newsletter | Privacy Policy | Terms of Service