I am using node 12 when i am generating the pdf the image is not shown in the header my sample code mentioned below
var path = require('path');
let hedderstr='<div id="pageHeader"><img src="./img/logo.png" width="25" height="25"></div>'
let html="<p>welcome</p>"
var options = { format: 'A4',
"header": {
"height": "250px",
"contents":hedderstr
},
localUrlAccess: true,
};
pdf.create(html, options).toFile('./sample.pdf', function(err, res) {
if (err) return console.log(err);
console.log(res); // { filename: '/app/businesscard.pdf' }
});```