I can not send an image to pdfmake my code:
let docDefinition = {
content: data,
styles: {
header: {
fontSize: 16,
bold: true,
margin: [0, 0, 0, 20]
},
cell: {
margin: 5,
fontSize: 9
}
},
images: {
img: '/myimg.png'
}
}
pdfmake.createPdf(docDefinition).open({}, window)
error: Uncaught invalid image, images dictionary should contain dataURL entries (or local file paths in node.js)
<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c2444">#c2444</a>)</em></sub></div>