Dave
Dave

Reputation: 253

Using a specific path for generated PDF files with jsPDF

Is it, with jsPDF, possible to use a specific path for the generated pdf?

I'm using this for the saving part:

 pdf.save(path);

But editing the path, will only rename the name of the file. So if I for example use "pdf/pdf.pdf" as a path, the pdf file will simply be named "pdf-pdf.pdf"

Upvotes: 2

Views: 2089

Answers (1)

Simon Bengtsson
Simon Bengtsson

Reputation: 8151

No, javascript does not support saving files in custom locations for security reasons.

Upvotes: 1

Related Questions