Page 1 of 1

PDFs on IIS

Posted: 2012-03-01T03:25:37-07:00
by jason.shallcross
I'm trying to do various image manipulations on PDFs, and it works absolutely fine on Linux, but not on IIS.

ImageMagick works fine with other file formats.
GhostScript works fine when called directly.
I can even pipe the results from GhostScript to ImageMagick.

But when I try getting ImageMagick to handle PDFs on the fly, I get "Postscript delegate failed".
In fact it does work on the command line, but not through IIS when called through a CGI script.

So I think the problem is that ImageMagick can't find GhostScript, some config, registry or environment variable isn't set properly.

I've tried everything I can think of, but I'm now out of ideas.
Any help would be greatly appreciated!

I'm using ImageMagick 6.7.5-7.

Jason.

Re: PDFs on IIS

Posted: 2012-03-01T15:35:33-07:00
by fmw42
I am not a windows user so no nothing about IIS. But in many scripting systems, you have to provide the full path to any IM command.

Re: PDFs on IIS

Posted: 2012-03-12T02:34:03-07:00
by jason.shallcross
If anyone is interested - I gave up trying to get it to work properly.

Instead, I'm using Ghostscript on it's own to create a JPG, caching that and then using ImageMagick to manipulate that as a separate process.

It's annoying, and a lot more code - but at least it works.