I asked the question at WordPress.Stackexchange.com here [[LINK href="http://wordpress.stackexchange.com/questions/54946/print-cforms-form-as-pdf"]]http://wordpress.stackexchange.com/questions/54946/print-cforms-form-as-pdf[[/LINK]] , but have had no answer yet and I need this done yesterday. This is my issue:
I have created a form using Cforms from Delicious. Been using it for a while and I like the plugin. Might go for Gravity forms from time to time, but Cfoms is good and free.
The client asked me for an option to print this form as a pdf. I tried some plugins such as "Print Friendly and PDF Button" that make it possible to add a pdf or print button, but this button is subsequently added to all pages and most of the time the form does not appear on the print preview /printout. Does anyone know how I can do this? Is there a plugin or an easy way to add this functionality?
Arnav Joy answers:
can you show me which form you want to print as pdf
rhand comments:
The site's form here http://tinyurl.com/6vo4wmn . I deactivated maintenance mode. Will reactivate maintenance mode again as soon and or others have had a look.
rhand comments:
Any news Arnay? Would love to get this done by Friday so I can get this project done.
Arnav Joy comments:
Please check I have filter the plugin's output now the print button will be visible only in cform page
rhand comments:
Somehow the content is not being loaded on any of the pages now. The sidebar is as is the menu and header. I did check the backend and the content is still there thank God. Please see why my content is no longer loaded.
I got these errors:
Warning: preg_grep() expects parameter 2 to be array, null given in wp-content/themes/genesis/lib/admin/editor.php on line 39
Warning: Illegal offset type in wp-content/themes/genesis/lib/admin/editor.php on line 39
Warning: Illegal offset type in wp-content/themes/genesis/lib/admin/editor.php on line 40
Warning: preg_grep() expects parameter 2 to be array, null given in /wp-content/themes/genesis/lib/admin/editor.php on line 40
Warning: Illegal offset type in wp-content/themes/genesis/lib/admin/editor.php on line 40
but those issues do not seem to be related and will be addressed by Studiopress - author of Genesis Framework.
I still do not see why page.php does not load the content.
rhand comments:
When I deactivated "Print Friendly and PDF" all was peachy again. I guess your plugin filter was filtering a bit too enthusiastically. Hope you can find the culprit soon.
Arnav Joy comments:
Please check i have corrected that
rhand comments:
Print button is loaded and all content is still there. Making progress. Button position needs to be a bit more to the right, but that is a CSS margin issue. The menu issue is when I click on print PDF. The is loaded, but no form. Only the link "cforms contact form by delicious:days" is shown and saved as pdf..
rhand comments:
FYI Just doing a quick update to NL admin version. Will not take long.
rhand comments:
Did you by any change remove NL from wp-config? Just to load EN?
Arnav Joy comments:
yes i commented define('WPLANG', 'nl_NL');
corrected it now
rhand comments:
I just got this error: Parse error: syntax error, unexpected $end in /wp-content/plugins/cforms/cforms.php on line 1465
rhand comments:
All seems to be working well. Thanks a lot for all the hard word!
Gabriel Reguly answers:
Hi Jasper,
Are you manually inserting the print button?
That is key to have it only on your cforms page(s).
So you should add code to check if the page is 'verwijzing' and then add the print button.
Hope that is clear.
Regards,
Gabriel
Gabriel Reguly comments:
As was about to suggest a higher prize, but I see you already raised the prize.
I wonder if Arnav is working on a solution, else I can help you.
Please send me access detail via PM if you are interested.
Regards,
Gabriel
rhand comments:
Arnav is looking at it at the moment. He said he needed that fee hike and that he could take care of adding an option to print the form as a pdf. Just gave him access to the site as an admin.
Gabriel Reguly comments:
Wonderful, you are in good hands.
I am confident that Arnav will solve the issue for you.
Regards,
Gabriel