How could you dynamically create a pdf within wordpress? [closed] How could you dynamically create a pdf within wordpress? [closed] wordpress wordpress

How could you dynamically create a pdf within wordpress? [closed]


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


You may wish to use PHP's native PDF functions wrapped in a custom Wordpress plugin to generate your own PDF documents. Check out the PHP.net Manual: PDF for an overview. I'm there there are plenty of PHP=>PDF vendor libraries out there if you search the Google's.

Another solution, off the top of my head, would be to run a worker process somewhere to convert and return documents in [?|PDF] formats based on Wordpress data fed through a template system (mustache, twig, etc).


First of all I really recommend using Gravity Forms, it's a better plugin for forms and it also saves entries in the database so you can retrieve them.

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

Create a php file that implements tcpdf, and receives all input from the form (via POST or GET). Then you have all the parameters you need and you can create the PDF in any way you like.

In order to use this php file, open a Page in Wordpress and then rename the php file to page-.php (where XXXX is the new Page ID you opened)