I am trying generate PDF from simple code, but no show image. Help me please.
code
pdf.create("Hello <img src='j4.jpg' />").toFile('./pdf/cotizacion.pdf', function (err) {
if (err) {
console.log(err);
} else {
console.log("File created successfully ");
}
});
Thanks!
Can you something like this, since its not reading your image, its taking it as a string.
Or you can put base64 of image like:
This will read your image in pdf.