Hi Guys
Wondered if anyone would have any advice/suggestions/ideas on the following?:
I have been experimenting with client side printing of reports from Canvas, trying out some open source javascript libraries.
The ones I have looked at so far:
-pdfMake
-jspdf
-pdfKit
-htmlToCanvas
Does someone perhaps have a specific approach to printing/generating pdfs at client side that you favor above others?
(Or is there maybe already ideas to include printing functionality in canvas down the line?)
The goal is to have âpixel perfectâ reports as this is a requirement of one of our customers.
The problem I have currently is pulling in the styles along with the content & having the result give a clear image.
So far pdfMake gives me the closest result.
It does a lot of the heavy lifting and one can quite easily pull in and structure additional content as well along with the canvas data (like company logo images etc)âŚbut unfortunately it still has its limitations.
For example: The library does not allow one to colour the interior of a table cell yetâŚso you would need to write your own javascript extension within the librarysâ context to get this done.
Any help would be much appreciated.
Thanks in advance!
Regards,