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

quicksketch’s picture

Priority: Critical » Normal

I 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.

Dret’s picture

Thank 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.

quicksketch’s picture

There isn't an existing solution for this, I was recommending that a new project be created to add this support.

Dret’s picture

A 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

grey_’s picture

subscribing

4kant’s picture

Hi 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!

roball’s picture

Title: Integration with FPDF for printing form submission in PDF format » Generating a PDF document from the results of a form

There is now a "Webform2PDF" module. Did not test it (yet) but looks interesting.

fabrizioprocopio’s picture

Yes it's interesting
but that module gives pdf only for admins
not for end users
hope I wrong

davidw’s picture

Subscribe

quicksketch’s picture

Version: 6.x-2.3 »
Status: Active » Fixed

This 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.

Dret’s picture

Thanks a lot!

Is this the modules you are meaning: http://drupal.org/project/print ?

quicksketch’s picture

Yep, that's the one.

Dret’s picture

Does it works for multipage webform?

quicksketch’s picture

The 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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.