Delegates are missing

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
jerin
Posts: 1
Joined: 2019-05-06T22:23:58-07:00
Authentication code: 1152

Delegates are missing

Post by jerin »

Hi Team ,

I am new to Imagemagick. When I ma trying to use it with PHP , I am getting the error as follow :
Fatal error: Uncaught exception 'ImagickException' with message 'no decode delegate for this image format `PDF' @ error/constitute.c/ReadImage/501' in ----------
Do you know whey it happens ?
Please help me to go forward.

Thanks ,
Jerin
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Delegates are missing

Post by fmw42 »

Either Ghostscript is not installed or cannot be found or your policy.xml file needs to relax the permissions for PDF. See https://stackoverflow.com/questions/528 ... 3#52863413 for the latter. For the former, if you do have Ghostscript installed, then you may need to put the full path to (gs) Ghostscript in your delegates.xml file where is says

Code: Select all

command=""gs"
in the lines that are for decode of PDF, PS,EPS
Post Reply