node-html-pdf
node-html-pdf copied to clipboard
How to change the page title and pdf title?
Currently the page title and pdf title use the end of url segment by default. How to change them?
I have tried title tag in head but not working.

Here my code:
pdf.create(html).toStream(function(err, stream){
if (err) return res.end(err.stack)
res.setHeader('Content-Type', 'application/pdf')
res.setHeader('Content-Disposition', 'filename=my_filename.pdf')
stream.pipe(res)
});
Currently the page title and pdf title use the end of url segment by default. How to change them? I have tried
titletag in head but not working.Here my code:
pdf.create(html).toStream(function(err, stream){ if (err) return res.end(err.stack) res.setHeader('Content-Type', 'application/pdf') res.setHeader('Content-Disposition', 'filename=my_filename.pdf') stream.pipe(res) });
I have the same problem, did you find any solution?