[Rails] Re: encrypt the pdf

2012-12-05 Thread kiran cy
I think that is predefined in pdftk -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send

Re: [Rails] Re: encrypt the pdf

2012-12-05 Thread Colin Law
On 5 December 2012 11:04, kiran cy li...@ruby-forum.com wrote: Please quote the previous message and put your reply inline at appropriate points. Remember this is a mailing list not a forum (though you may be accessing it via a forum-like interface. Thanks. I think that is predefined in pdftk

[Rails] Re: encrypt the pdf

2012-12-05 Thread Frederick Cheung
On Dec 5, 11:14 am, kiran cy li...@ruby-forum.com wrote: http://www.pdflabs.com/docs/pdftk-cli-examples/ That is the usage summary for the command line tools, not for the ruby api. For starters you'll need to separate your arguments with commas, not spaces Fred -- Posted

[Rails] Re: encrypt the pdf

2012-12-05 Thread kiran cy
It is working pdf is encrypted my_pdf = PDF::Toolkit.open(directory+@encrypt_pdf.attach.url.split('?')[0].to_s) my_pdf.user_password=@encrypt_pdf.user_password my_pdf.owner_password=@encrypt_pdf.owner_password how to allow permissions like printing screen reader -- Posted via