html2pdf.js icon indicating copy to clipboard operation
html2pdf.js copied to clipboard

Saving PDF to another directory

Open rickmedlin opened this issue 3 years ago • 3 comments

This is a very easy to use and robust library. Thanks for making it, as it satisfied my requirements almost exactly.

Is it possible to save a PDF to somewhere other than the default download folder, for example:

html2pdf().from(invoice).set(opt).save("D:\Reports\ReportFolder");

If not, is this feature under consideration? I underxtand that there might be security issues, but it would be nice to have.

rickmedlin avatar May 23 '22 17:05 rickmedlin

browsers don't permit this

RobbyRabbitman avatar May 26 '22 12:05 RobbyRabbitman

True. I had decided to use the default Downloads folder, but I'd like to send the generated PDF as an e-mail attachment.

Is there a way to render it on the server side so as to avoid uploading it just so it can be attached?

rickbps avatar Jun 27 '22 22:06 rickbps

@eKoopmans will there be a future updates for regarding the saving to another directory?

jowmm avatar Jul 21 '22 11:07 jowmm