Page 1 of 1

Reading password protected PDF file

Posted: 2012-08-07T13:24:17-07:00
by Pitoziq
Is it possible to read password protected PDF file using Imagick? I have tried to find some info about it, but without success, found info about command line interface only (using -authenticate option). Password for PDF file is known of course.

Re: Reading password protected PDF file

Posted: 2012-08-07T13:45:33-07:00
by Bonzo
Not all options are supported with Imagick and there does not seem to be a lot of work being done to it. If you can not find any information on the php Imagick website I would say you can not do what you want.

Imagick is not written or supported by the Imagemagick developers.

Re: Reading password protected PDF file

Posted: 2013-01-21T20:07:34-07:00
by mkoppanen
For most of the options the following should work:

Code: Select all

proto bool Imagick::setOption(string key, string value)
In this case you could try:

Code: Select all

$im->setOption("authenticate", "password");