webodf / ViewerJS

ViewerJS: Document Reader in JavaScript
http://viewerjs.org
1.94k stars 421 forks source link

To open pdf with password inside #228

Open seneca11 opened 7 years ago

seneca11 commented 7 years ago

Hello.

Could anyone help me, please ? I want that a pdf file keeps the password hidden inside and it doesn't ask for it when ViewerJS show it. The final user simply can see the opened file, without know the document is still protected.

Is it possible to send/write the password directly into some file ( index.html, pdf.js ) ? I mean, send it like a parameter to ViewerJS.

Sorry for my bad english. Many Thanks.

rebeccamantel commented 5 years ago

I am looking for the same Did you find a solution?

seneca11 commented 5 years ago

Hello from Madrid, Spain.

I did not receive an answer to this question, regrettably.

I was looking for a solution on the internet. I found a lot of information on several ways to do it, but it was a bit complicated for me ( I had to spend too much time and tests ).

I'm remembering how to do it without the documents ( the web pages I saved at that moment ) in front of me, but I believe that it was necessary to open the file at a low level, thus introducing the password ( - it was necessary to know the structure of the PDF format ) and to read - ( recovering step by step ) - the lines of the document.

At the end I found a way to open the pdf file - without a password - and show it protected in the browser. It was the easiest way and I did it so.

Sincerely yours,

José Luis González Vera


El jue, 24/1/19, rebeccamantel notifications@github.com escribió:

Asunto: Re: [kogmbh/ViewerJS] To open pdf with password inside (#228) Para: "kogmbh/ViewerJS" ViewerJS@noreply.github.com CC: "seneca11" palazzo33@yahoo.es, "Author" author@noreply.github.com Fecha: jueves, 24 de enero, 2019 22:36

I am looking for the same Did you find a solution?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.