Page 1 of 1

problem reading PDF

Posted: 2008-02-04T09:54:28-07:00
by ivobrabec
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...

Re: problem reading PDF

Posted: 2008-02-04T10:23:24-07:00
by mkoppanen
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.

Re: problem reading PDF

Posted: 2008-02-06T05:20:38-07:00
by ivobrabec
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

Re: problem reading PDF

Posted: 2008-02-07T12:57:03-07:00
by ivobrabec
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