Open ysd-wilson opened 2 years ago
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) });
I have the same problem, did you find any solution?
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: