I am trying to use Imagemagick with Imagick on PHP. In general Imagick is working fine.
My hoster also installed Ghostscript, but I cannot find the word "ghostscript" in phpinfo.
When I want to open a pdf file, I have this error (I tried several pdf files):
Code: Select all
Fatal error: Uncaught exception 'ImagickException' with message 'Postscript delegate failed `/tmp/magick-XXgzb2Yt': @ error/pdf.c/ReadPDFImage/645' in /home/httpd/h/a/d/hadrien/shci.franceserv.com/pdf/test.php:2 Stack trace: #0 /home/httpd/h/a/d/hadrien/shci.franceserv.com/pdf/test.php(2): Imagick->__construct('test.pdf') #1 {main} thrown in /home/httpd/h/a/d/hadrien/shci.franceserv.com/pdf/test.php on line 2
Or:
Code: Select all
Fatal error: Uncaught exception 'ImagickException' with message 'Postscript delegate failed `test.pdf': @ error/pdf.c/ReadPDFImage/645' in /home/httpd/h/a/d/hadrien/shci.franceserv.com/PDF/test.php:3 Stack trace: #0 /home/httpd/h/a/d/hadrien/shci.franceserv.com/PDF/test.php(3): Imagick->__construct('test.pdf[0]') #1 {main} thrown in /home/httpd/h/a/d/hadrien/shci.franceserv.com/PDF/test.php on line 3
Thank you for your help!