Oragami is not encrypting the PDF with the same password as given in encrypt method.

29 views
Skip to first unread message

Akash Mishra

unread,
May 27, 2013, 8:33:46 AM5/27/13
to origa...@googlegroups.com
Hi Team,

I am using Oragami gem v.1.2.5 with jruby version 1.7.2.


I have pre-existing pdf file which i have to encrypt. PDF is getting encrypted but when i try and open the PDF using Adobe Reader then same password is not able to open the PDF.

e.g i am using following command to do encrypt,

Origami::PDF.read(pdf_file_name).encrypt({:user_passwd => password,:owner_passwd => password}).save(secure_pdf_file_name)

Where , 

password = "pass"
pdf_file_name = "existing pdf file path"
secure_pdf_file_name = "encrypted file path"


Some times "pass" is able to open the pdf file but it fails for other pdf.




Reply all
Reply to author
Forward
0 new messages