Imagick & PDF - The Delegate From Hades
Posted: 2008-08-26T12:54:23-07:00
Good afternoon.
I've been using Imagick with various rasterized formats to great effect for some time. Only recently have I been tasked with doing some PDF related tasks, and I have run into some ... trouble. After spending the greater part of the day browsing posts on this forum, and others, I realize that I am not the first (nor the last) person to experience these issues.
In short, I have gs installed. Apache can find it in the expected location, /usr/bin.
The problem I'm currently experiencing is thus: Reading in a PDF string from a postgres LOB results in abject failure. I receive:
" Postcript delegate failed `': No such file or directory" -- The 'tick' is not of my creation, it's what's being spat out by PHP.
I am using Ubuntu 8.something.or.other, latest updates, Factory fresh, I have not recompiled a thing.
Details:
results: The error, mentioned above.
~~~
What's odd is that I am able to run this script from the CLI, as both my user, and as www-data (via su -c).
I do receive some interesting gobbeldygook at the CLI, however, so the execution is not without errant happenings, thus:
Moreover, I check apache's error log, and I see this:
~~~~
If anyone can offer some guidance on troubleshooting & solving this most painful of situations, I would be most appreciative.
Thanks.
I've been using Imagick with various rasterized formats to great effect for some time. Only recently have I been tasked with doing some PDF related tasks, and I have run into some ... trouble. After spending the greater part of the day browsing posts on this forum, and others, I realize that I am not the first (nor the last) person to experience these issues.
In short, I have gs installed. Apache can find it in the expected location, /usr/bin.
The problem I'm currently experiencing is thus: Reading in a PDF string from a postgres LOB results in abject failure. I receive:
" Postcript delegate failed `': No such file or directory" -- The 'tick' is not of my creation, it's what's being spat out by PHP.
I am using Ubuntu 8.something.or.other, latest updates, Factory fresh, I have not recompiled a thing.
Details:
Code: Select all
$i = new Imagick();
try {
$i->readImageBlob($lob);
} catch (Exception $e) {
printf("Something terrible has happened: %s", $e->getMessage());
}
~~~
What's odd is that I am able to run this script from the CLI, as both my user, and as www-data (via su -c).
I do receive some interesting gobbeldygook at the CLI, however, so the execution is not without errant happenings, thus:
Code: Select all
**** Warning: CS/cs (setcolorspace) operand not a name: [/ICCBased {36 0 resolveR}] ****
**** Warning: CS/cs (setcolorspace) operand not a name: [/ICCBased -dict-] ****
**** Warning: CS/cs (setcolorspace) operand not a name: [/ICCBased -dict-] ****
**** Warning: CS/cs (setcolorspace) operand not a name: [/ICCBased -dict-] ****
**** Warning: CS/cs (setcolorspace) operand not a name: [/ICCBased -dict-] ****
**** Warning: CS/cs (setcolorspace) operand not a name: [/ICCBased -dict-] ****
**** Warning: CS/cs (setcolorspace) operand not a name: [/ICCBased -dict-] ****
**** Warning: CS/cs (setcolorspace) operand not a name: [/ICCBased -dict-] ****
**** Warning: CS/cs (setcolorspace) operand not a name: [/ICCBased -dict-] ****
**** Warning: CS/cs (setcolorspace) operand not a name: [/ICCBased -dict-] ****
**** Warning: CS/cs (setcolorspace) operand not a name: [/ICCBased -dict-] ****
**** This file had errors that were repaired or ignored.
**** The file was produced by:
**** >>>> Adobe PDF Library 8.0 <<<<
**** Please notify the author of the software that produced this
**** file that it does not conform to Adobe's published PDF
**** specification.
Code: Select all
GPL Ghostscript 8.61: Unrecoverable error, exit code 1
If anyone can offer some guidance on troubleshooting & solving this most painful of situations, I would be most appreciative.
Thanks.