Hi,
i have 2.0.1 installed on our server and the following error is produced when making :
$handle=new Imagick();
$handle->readImage("test.pdf");
Fatal error: Uncaught exception 'ImagickException' with message 'Postscript delegate failed `/httpd/html/mydomain/www/test.pdf': No such file or directory' in /httpd/html/mydomain/www/test.php:5 Stack trace: #0 /httpd/html/mydomain/www/test.php(5): Imagick->readimage('test.pdf') #1 {main} thrown in /httpd/html/mydomain/www/ivo.php on line 5
The PDF is accessible, in the same directory, i can be access with fopen()...
Anybody has any idea what is the problem? THe pdf is attached, i tried sevral pdf....
Thanks a lot
Ivo
PF sorry i put this post by accident to the bugs section also...
problem reading PDF
problem reading PDF
- Attachments
-
- test.pdf.zip
- test.pdf
- (212.8 KiB) Downloaded 1135 times
Re: problem reading PDF
ivobrabec wrote: Fatal error: Uncaught exception 'ImagickException' with message 'Postscript delegate failed `/httpd/html/mydomain/www/test.pdf': No such file or directory' in /httpd/html/mydomain/www/test.php:5 Stack trace: #0 /httpd/html/mydomain/www/test.php(5): Imagick->readimage('test.pdf') #1 {main} thrown in /httpd/html/mydomain/www/ivo.php on line 5
Let's start it simple: log into your server and try to execute "gs" command. Does it give you command not found? If yes, install ghostscript.
Mikko Koppanen
My blog: http://valokuva.org
My blog: http://valokuva.org
Re: problem reading PDF
i asked the server admin to install ghostscript, so far without any modules...the problem with pdf still persists....what should be installed next?
Thanks much for your help
Ivo
Thanks much for your help
Ivo
Re: problem reading PDF
Hi,
finaly we got it...it was due to the ghostscript was not availabe to the script as the server uses chroot..
Thanks for your help
Ivo
finaly we got it...it was due to the ghostscript was not availabe to the script as the server uses chroot..
Thanks for your help
Ivo