Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Is there a plugin or something that creates PDF files from a entered by the user form data, when it clicks on the submit button?

share|improve this question
1  
What is the context/purpose of creating the pdf? –  kevtrout Nov 10 '10 at 19:35
    
@kevtrout: say I have a blank form of the company to fill-in. People fills-in the form and in output gets the filled pdf with the company's logo, phones and stuff –  serhio Nov 10 '10 at 20:17
    
I've seen long time ago that it's possible to have a pre-made PDF and then only add the entered data onto/into that PDF and return the updated one. It was a solution written in PHP, a library, but I don't remember it's name. Sounds good for your case w/o dealing to generate the whole PDF while having it nice-looking. –  hakre Nov 11 '10 at 0:07
    
@hakre: You can pre-fill a PDF form using a FDF file, or the XML-based XFDF format. I once used that to let people fill in a web form, and then later digitally sign a PDF with their filled in values. –  Jan Fabry Nov 11 '10 at 14:42
    
@Jan - thanks for the info, (but) I was talking about a template PDF and not about prefilling PDF form values. - just to clarify. –  hakre Nov 12 '10 at 0:27
add comment

4 Answers

Well funny you ask this because I just had to convert some html pages into pdf. Though I do not know a specific wordpress solutions, one way would be to create a html page with the submitted form and then use one of the following php scripts.

http://code.google.com/p/wkhtmltopdf/

http://code.google.com/p/dompdf/

share|improve this answer
add comment

There also is the gory approach, which is to use Zend_Pdf:

http://framework.zend.com/manual/en/zend.pdf.html

share|improve this answer
add comment

Short answer: no.

Dynamically creating PDFs is a pretty intense job, but it can be done. For reference, try looking at some of the existing plug-ins that create PDFs based on post content: WordPress PDF Plugin was the first I found from a Google search.

Remember that PDFs and HTML web pages are two very different things and will be built differently. If you want users to enter form data and have it auto-populate into a PDF, you're looking at a unique situation that will require copious amounts of custom code. I recommend posting a job listing or hiring a developer to set things up for you.

share|improve this answer
    
some people stackoverflow.com/questions/4147422/submit-to-pdf-in-wordpress told about creating posts => PDF => delete posts –  serhio Nov 10 '10 at 20:14
add comment

Well, yes, with a little work. One of my customers needed exactly that. We used GravityForms, and David Smith http://www.ounceoftalent.com did some custom work. The form pulled html from a custom field, and the final pdf looked pretty nice, including several images on each page. Sorry I can't provide a link, the site isn't live right now.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.