From: Marc L. <ma...@ma...> - 2017-12-10 01:16:12
|
Indeed that is a trade-off of picking mPDF (mPDF is not a browser and has very limited support for JS). It's not just mPDF output. We also need this for newsletters. This is how I intend us to solve this: https://dev.tiki.org/Converting-dynamic-JavaScript-content-into-static-assets Tiki 20 or 21 It's one of the many reasons why we added Browser Automation: https://dev.tiki.org/Browser-Automation#Convert_JS_to_images Best regards, M ;-) > > I find it a huge backdraw, that mPDF cannot print H5P elements at all. Ok, > they are JS and dynamic, but at least stuff like a Pie Chart, or H5P > Elements in general should have a fallback as .png or similar ar mPDF should > make a "screenshot" of the element and print that what is displayed first > when a user loads a page. > > Anyway, I think a solution for that is just a matter of time. I dont worry > about that. > |