I was wondering if anyone has taking a dynamic pdf form, and populated from a php form or from mysql information?

I have been looking into Fpdf, and other methods, but they don't seem to do what I'm looking for.

The reason for this, is I need to output a PDF, in the same layout that an insurance company wants.

This is new ground for me and would love some help!
Thanks for your time.


Edited by BaSk: n/a

7 Years
Discussion Span
Last Post by mschroeder


I have done just this. But, I use a command line tool called PDFTK (http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/)

Essentially, I take a fillable pdf that has been designed. Collect information from the user via a web interface and create xfdf from it (http://partners.adobe.com/public/developer/en/xml/xfdf_2.0_draft.pdf). Once I have the generated xfdf I execute a command line call with php to pdftk that merges the fillable pdf with the xfdf resulting in a finished flattened pdf that contains the user's information.

PDFTK is free, but it has to be installed on the server to work. It also has a ton of other features that are really useful to be able to call from the command line.


Thanks for the information! I will take a look into that, sounds like just what I need!

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.