I am using this to convert the html to PDF.The conversions are really good.But the problem is to add header and footer in the PDF pages.In the options if i add the header text i
Maybe will be helpful for someone.
Shanoor answer is correct and code example he provided works well if you don't set "base" property for options.
So remove "base" property and make path full.
One more way to get the path to the image. This snippet
var projectRoot = process.cwd();
projectRoot = projectRoot.replace(/\\/g,'/');
var imgBase = 'file:///' + projectRoot + 'path to the image';
Will return something like this file:///C:/project folder/path to the image/img1.jpg