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.