I was wondering if anyone knows of any way to take the HTML content of a custom module which is placed inside an article and convert the HTML to PDF via the click of a button or so.

So basically the user will have a button "convert to PDF", and the PDF file will be generated with the HTML content, and they will have the option of downloading it.


I suggest using Phoca PDF. It's a decent extension. https://www.phoca.cz/phocapdf

  • I have tried that one, but it was not working. I have a custom template so it may have performed and override on some content files. However, I've used jsPDF and jspdf-AutoTable to sort the issue :) – MailBlade May 19 '18 at 6:38

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.