Is there a way of converting the Webform into PDF?
mkogel - March 26, 2008 - 19:36
I have just enabled the webform to create a log questionnaire. I would like to create a PDF version of my questionnaire as well for offline use. Do I need to create the same questionnaire using a separate tool to publish it in PDF or is there a way of converting the webform to PDF?

The d6 version of the print
The d6 version of the print module now supports outputting to pdf. Maybe that could help....
thanks.. will investigate that..
I am a newbie, please be gentle with me...
no problem. Its a pretty new
no problem. Its a pretty new feature actually, so let us know how it works.
here is the initial comments about the Print module
It looks good.
By default the printer friendly version link is placed only on the Book Pages (if book module is installed). It can be configured to show on all pages. In my case I wanted to show it on the Webform. This meant I had to turn on "show link on all pages" option. In principle I would not mind showing the link on all pages but...
By default, the priner friendly link is placed in the layer which is displayed at the bottom of the pages (I use salamander as a base theme) apart from the Forum and Blog pages. On those the link is displayed on the top of the page by default which I found it very annoying.
It make sense only show it on the book pages. On the other hand, I would have liked the option to turn on/off for individual pages.
Its css can be configured to show the printer friendly page in a nicer way.
So, in my case I want to show it on the Webform without showing anywhere else (apart from the Book) in the site. The main functionality is to give the user to ability to print the form to see its content before they start completing the form. (it is a medical questionnaire so they need to get some details offline - may not be available to them immediately). In order to resolve this problem I have investigated the PDF option.
I though if I could convert the webform to PDF myself (no user access) and give the user to option to download it prior to completing the form it would be great. Then I don't need to show the silly PDF convert link on the top of the pages.
I have downloaded the dompdf but... I cannot follow the installation instructions because I am not a server config guru (it takes painfully ages to figure out if something needs to be done to apache or any other config files).
Instructions say "edit ...config.php to fir your installation" followed by lots of BLAH I have no clue what means... I know it needs to be edited because Apache is already barking at me with errors.
I have edited only this line (below)
define("DOMPDF_FONT_DIR", DOMPDF_DIR. "/$ chmod 1777 lib/fonts/");
This seemed to shut up Apache but when I clicked on the PDF friendly link I get http 500 internal server error. GREAT. Don't know what to do about it (yet).
This is how far I got with this printer friendly version module...
-------------------------------------------
I am a newbie, please be gentle with me...
more comments about the PRINT module
I was complaining about the printer friendly version link showing up on top of the Forum and Blog pages but there is a way of turning them off. Do not check "show link on (non-content) pages" option during the configuration (admin>configuration>printer-firendly section)
As for the PDF option, since I am not giving the users to print pages in PDF I will not use the PDF option. I have installed cutePDF on my machine. Once I am done with the webform I will use the Printer-friendly version link on the webform page and print it to PDF from the browser. This waw I can upload the PDF to the website for them to download. Less server processing.
------------------------------------
I am a newbie, please be gentle with me...
Ahhhh... now that I
Ahhhh... now that I understand your use case better, they way you chose to do is exactly the way I would have recommended. I love cutepdf and have used it for years. I thought you wanted folks to be able to pdf the form for themselves after filling it in.
in any case, at least you got what you needed.
Print Module is indeed admin friendly
As I click around more I discover more (then I forget where I clicked before hahahaha)...
Printer friendly link can be turn on/off on content types (admin > content management > content types).
For instance;
I turned the link off on all content types except from the Book and Webform.... Very cool
I think I am done with this module
------------------
I am a newbie, please be gentle with me...