How could you dynamically create a pdf file in Wordpress?

I use contact form 7 so that users enter data, and then, based on their data entry, I need to add other text in pdf before the output of all pdf.

For example, if a user says they like red balloons, the created pdf balloon will indicate how important red balloons are, etc.

I know there must be a way to do this using fpdf, tcpdf or something else, but I'm not sure how to do it. Any ideas?

+8
pdf wordpress pdf-generation fpdf tcpdf
source share
5 answers

Take a look at dompdf. It is very easy to use, as well as good implementation documentation.

+2
source share

First of all, I highly recommend using Gravity Forms, this is the best plugin for forms, and it also saves records in the database so you can restore them.

For the PDF part, I think you need to program it manually.

Create a php file that implements tcpdf and get all the data from the form (via POST or GET). Then you have all the necessary options, and you can create the PDF as you like.

To use this php file, open the page in Wordpress, and then rename the php file to the -php page (where XXXX is the new page id that you opened)

+1
source share

You might want to use the built-in PDF PDF functions wrapped in a custom Wordpress plugin to create your own PDF documents. Check out the PHP.net Manual: PDF for a review. I have a lot of PHP=>PDF provider libraries there if you are looking for Google.

Another solution, from my point of view, would be to start a workflow somewhere to convert and return documents in formats [? PDF] based on Wordpress data transmitted through a template system (mustache, twig , etc.).

+1
source share

install the plugin to create pdf files from this url. Hope this helps you.

http://wordpress.org/extend/plugins/kalins-pdf-creation-station/

0
source share
-one
source share

All Articles