I'm using the api pdfmake in nodeJS to generate pdf files http://pdfmake.org/#/ but i do not not know how to add image to the document and always i get below error
error invalid image, images dictionary should contain dataURL entries (or local file paths in node.js)
This is how i add the image and it exist in the same folder of the code:
body: [
[{ rowSpan: 2, image: 'data:aa/png' }, 'Capteur', '', 'image', 'image', 'image'],
['', 'Health', '', 'Proximite', 'Lumiere', 'Geroscope'],
]
I need some helps and thank you.