Hi to all...
I used this self-made integration between Webform and the free script PDFD (http://www.fpdf.org/?lang=en) to make avaiable a printable PDF version at the end of Form submission.
You have only to place two script file in the root folder of drupal and insert a php script in the "Additional process" field, dedicated to php code in the webform edit page... (there's a lot of tutorial to take as example in tutorials FPDF pages)
The only thing goes wrong in the redirect message... that result lost at the end of submission...
But the print operation and the email sending works perfectly....!!!
Is possible an integration in the Webform module's core... for a better and more complete feature...??
Thanks!
Bye
Comments
Comment #1
quicksketchI think this would be a great feature, but it's probably not suitable to include in Webform core. Webform is already one of the largest modules in the Drupal repository, I think it would be better to separate this functionality into a separate module. Drupal already provides an extensive API for intercepting the Form Submission and generating the PDF if this were put into a module, but if any additional API is needed from Webform I'd be happy to add it.
Comment #2
Dret commentedThank You for reply...
Can you sugget me a solution (another Drupal module) that make possible to print Webform result in PDF file withou using external script... like my solution...??
Thanks a lot!
Bye.
Comment #3
quicksketchThere isn't an existing solution for this, I was recommending that a new project be created to add this support.
Comment #4
Dret commentedA final question...
I have created a Webform with multiple pages...
Unfortunatly my solution to print in .PDF works only in the page where the Send-Print function was invoked (where the button is placed).
Example:
page1=5fields
page2=7fields+Print/SendButtom
>> Inside the PDF are printed only the seven fields of the second page but the first page fields remain empty .
This probably because I take the array variables to be printed, from the value inside HTML structure of the page.
Can You tell me where the module store all informations before they are sent by email?
In this way I can recall all in the final page and print all together...
(Sorry I'm not so skilled in PHP!)
Thanks!
Bye
Comment #5
grey_ commentedsubscribing
Comment #6
4kant commentedHi Dret,
seems you have found a solution in printing a webform page as pdf.
As I have only one webform page: How did you do this?
Thanks for your reply!
Comment #7
roball commentedThere is now a "Webform2PDF" module. Did not test it (yet) but looks interesting.
Comment #8
fabrizioprocopio commentedYes it's interesting
but that module gives pdf only for admins
not for end users
hope I wrong
Comment #9
davidw commentedSubscribe
Comment #10
quicksketchThis functionality has been added in #520722: Support print.module (Printable pages and PDFs), provided through Print module. If a user can view their own submissions, they can also access PDF versions through the normal table of results.
Comment #11
Dret commentedThanks a lot!
Is this the modules you are meaning: http://drupal.org/project/print ?
Comment #12
quicksketchYep, that's the one.
Comment #13
Dret commentedDoes it works for multipage webform?
Comment #14
quicksketchThe Print module simply makes a PDF of the submission result as created by Webform, so it'll look the same as the "View" version of a submission. The current implementation of this (as provided by #181077: Printable page for webform submissions) shows all fields from all pages on a single page, with an h2 tag separating the multiple pages.