Thanks for your suggestion, It's done using node-canvas.
M
mshafrizal
@mshafrizal
0
Reputation
2
Posts
608
Profile views
0
Followers
0
Following
Posts made by mshafrizal
-
RE: Using HTML Canvas in docx recipeposted in general forum
-
Using HTML Canvas in docx recipeposted in general forum
Hi All,
My team already has template to generate report using docx recipe. It's working fine until I've been assigned to a task where a client asked to include thermal images for their report.
We have functions to decode raw thermal images from backend as an array buffer. We successfully render thermal images in our web app using HTML Canvas API,
CanvasRenderingContext2D.createImageData(). And now I am wondering how to render the decoded thermal images to docx recipe. Can I use HTML canvas inside docx recipe? So I can usecreateImageData()like I did in web app.This is list of packages we use
- handlebars-intl
- handlebars-helpers
- pdf-lib
- bluebird
- lodash
- mathjs
- jimp
- moment-timezone
- axios
- jpeg-js
- protobufjs
- tinygradient
Note: I am new to jsreport
Thanks