Submitting form details to a PDF

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Wardy7
Forum Commoner
Posts: 38
Joined: Wed Aug 24, 2005 4:45 am
Location: UK

Submitting form details to a PDF

Post by Wardy7 »

I am after some help please guys.

I have a form on my website where details that are entered get submitted and then get displayed on another page.
However, I am wondering how easy (or not) it would be to post these values into a pdf file for users to print out from there instead of it being a web page?

Any help would be geratly appreciated how I could go about doing this as I'm a bit (totally) clueless :oops:

Cheers
Wardy
buckit
Forum Contributor
Posts: 169
Joined: Fri Jan 01, 2010 10:21 am

Re: Submitting form details to a PDF

Post by buckit »

There are 2 ways of doing it...
1) create a PDF from scratch to display everything you need to display (using dompdf, tcpdf or others).
2) create a PDF form (create a PDF with user fillable fields) and then use PHP to create an FDF that will display with the PDF (the FDF basically overlays the field values).

I have tried the FDF method and never had great success with it. but it is possible... I just haven't spent enough time on it.
Wardy7
Forum Commoner
Posts: 38
Joined: Wed Aug 24, 2005 4:45 am
Location: UK

Re: Submitting form details to a PDF

Post by Wardy7 »

Hi mate,
thanks for the reply.
I don't suppose you have any examples of this that I could see so I could try and bodge something together myself as I've not much of an idea where to start with it :oops:
Post Reply