PDFs on IIS

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
jason.shallcross
Posts: 2
Joined: 2012-03-01T02:48:46-07:00
Authentication code: 8675308

PDFs on IIS

Post 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.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: PDFs on IIS

Post 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.
jason.shallcross
Posts: 2
Joined: 2012-03-01T02:48:46-07:00
Authentication code: 8675308

Re: PDFs on IIS

Post 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.
Post Reply