Postscript delegate failed

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
Mielani
Posts: 1
Joined: 2014-01-24T02:40:49-07:00
Authentication code: 6789

Postscript delegate failed

Post by Mielani »

Hi.
I tried to convert a pdf to a jpg and got:
Uncaught exception 'ImagickException' with message 'Postscript delegate failed `test.pdf': No such file or directory @ pdf.c/ReadPDFImage/634'

This occurs only for one particular pdf which however seems to be valid since my pdf viewer and browser both were able to open it.

GhostScript is installed.

This is the code I tried:

Code: Select all

ini_set('display_errors', 1); 
error_reporting(E_ALL); 
$im = new imagick('test.pdf[0]'); 
$im->setImageFormat('jpg'); 
$im->trimImage(0); 
$im->writeImage('test.jpg');
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Postscript delegate failed

Post by fmw42 »

might your ghostscript be too old. check for newer versions.
Post Reply