Use libraries in controllers
kgeorgiou-cognity opened this issue · 2 comments
kgeorgiou-cognity commented
I would like to use the jsPDF library in a controller, but as far as I understand right now it is only available for frontend js scripts. Is there a way to use the library inside a controller?
taurgis commented
This library has been converted to work in controllers. Please have a look at the readme.
kgeorgiou-cognity commented
Thank you, I figured it out. Apparently the cartridge was not properly activated. In the jsPDF documentation it is stated that you can create pdf from html. I have tried using the function suggested there, but I get an error that this function does not exist. Is there something i am missing?