4

Possible Duplicate:
Filling PDF Forms with PHP

I have been looking and testing this for a couple days now and was wondering if anyone could point me in a different direction. I have a very long job application HTML form (jobapp.html) and a matching PDF (jobpdf.pdf) that have the same field names for all entries in both the HTML form and the PDF. I need to take the user data that is entered in the form and convert it to a PDF. This is what I have gathered so far but don't know if I am on track:

Is pdftk the only viable 3rd party app to accomplish this?

Using pdftk would i take the $_POST data collected for the user and generate a .fdf(user.fdf) then flatten the .fdf on the .pdf(job.pdf). So irregardless of where the fields are located on each document the information on the fdf would populate the pdf by field names?

Community
  • 1
  • 1
Djacksway
  • 447
  • 4
  • 7
  • 16

1 Answers1

1

Try mPDF. It generates PDFs from HTML and CSS. It doesn't understand everything you might want, but for documents with relatively simple formatting it's good.

zysoft
  • 2,268
  • 1
  • 16
  • 21