Category : imagick

Below is the Imagick code reading a PDF file. $imgExtension = new Imagick(); $imgExtension->setResolution(300,300); $imgExtension->readImage($pdffile); Below error appears in the log-> production.ERROR: attempt to perform an operation not allowed by the security policy `PDF’ @ error/constitute.c/IsCoderAuthorized/408 {"userI d":1,"exception":"[object] (ImagickException(code: 499): attempt to perform an operation not allowed by the security policy `PDF’ @ error/constitute.c/IsCoderAutho rized/408 ..

Read more

I am trying to convert PDF to image using Imagick PHP. Able to achieve it when PDF is not password protected. But unable to find solution if PDF is protected with password. Any help will be much much helpful. My function – public static function convertPdfToImage($file) { $im = new Imagick(); $im->readImage($file); $im->setIteratorIndex(0); $im->setImageFormat(‘jpg’); return ..

Read more