After thinking a lot about this and re-testing JavaScript client-side PDF libraries, I've decided that the best way to go, is to generate PDFs in client-side.New in R42
- new: jspdf library included by default, allowing the creation client-side pdf docs.
- new: jspdf samples integrated in desktop demo.
- modified: data demo. It allows now the creation of a client-side pdf report from a query
done via httpRequest function.
So, I've integrated jspdf library to HMGSCRIPT.
This decision is consistent with general HMGSCRIPT philosophy (ask server for database operations only).
The data demo, has now a new feature ('PDF Report'). It queries remote database via httpRequest function, get a recordset array with the result as response and locally generates the PDF report.
All demos included (doing nearly everything you could need) works perfectly on Chrome, Firefox and Safari.
Since Sourceforge is experiencing problems (I'm unable to upload files) I'm attaching to this message a source-only version of R42. To make it work, you simply must to merge it, with an existing R41.
Download: https://sourceforge.net/projects/hmgscript
Enjoy!