I am working jsPDF.js functions and create simple PDF using jsPDF.But i need to set password for downloaded pdf while i need to modify that pdf without password encryption.And I have developed a tool in javascript along with pdf preview download.
Now i need an answer that "how i(admin) want to keep a password to my pdf preview download like an encrypt .because user can`t modify that downloaded PDF
Here i attached sample code for create pdf.
var doc = new jsPDF();
doc.text(20, 20, 'Hello world!');
doc.text(20, 30, 'This is client-side Javascript, pumping out a PDF.');
doc.addPage();
doc.text(20, 20, 'Do you like that?');
doc.save('sample.pdf');
How to achieve to set password for downloading pdf section.Kindly advise me.