As the name suggest I have a quandary. I have a Moodle form that a user must fill out and submit by going to a block. It must then be approved by pre-selected users. At the end of the approval process, the form needs to be exported to PDF and then emailed to the user and to another email for documentation purposes. My question is, how can I export the Moodle form area to a PDF?
The form is already done and is the way everyone likes it and in the format they would want the PDF to be in. So what function do I need to include to make this happen? Is there a PHP function that will take the form, and only the form, not the surrounding columns and menus and 'print' it to PDF? I have seen a html to PDF library for PHP and doesn't sound like it would work and probably more work then needed. I have the email also, and I would assume there is a way to attach the PDF to an email. Any help with this would be greatly appreciated.
Thank you,
Lee