0

I am trying to generate pdf files in a cakePHP app, but so far get only html to be included in a file. The problem is that the main content of the page (calendar) is produced by the javascript which is completely ignored when generating a PDF. What is the best solution in this case?

I really appreciate your help.

1
  • how about capturing the js output, sending it to the back-end and send it back to the front/display as a page that can be 'PDFed'?
    – vector
    Jan 10, 2013 at 15:49

1 Answer 1

0

If you use something like wkhtmltopdf it should work as it contains the actual rendering code used in chrome.

There is a plugin ready made that works out the box (after installing wkhtmltopdf)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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