i used below code to replace the file names with absolute file path, still it is giving me protocol is unknown, i have font files, image files to include in pdf
var dirName = path.join('file://', __dirname);
dirName = dirName + '/';
html = html.replace(/src="/g, 'src="'+dirName).replace(/src: url(/g,'src: url('+dirName);
i used below code to replace the file names with absolute file path, still it is giving me protocol is unknown, i have font files, image files to include in pdf
html = html.replace(/src="/g, 'src="'+dirName).replace(/src: url(/g,'src: url('+dirName);