I'm developping a web app which basically opens a pdf file using pdf.js. The pdf file is protected with a password. Here's an extract of the code.
var the_password = 'thepassword';
var pdf = 'document.pdf';
var loading = pdfjsLib.getDocument({ url: pdf, password: the_password });
So on the client side everyone can see my password, and I don't want that as my aim is that no one can use the pdf file outside the web app.
How can I protect the password ?
Thanking you in advance.