Page 1 of 1

Security restriction for converting PDF to JPG in IIS 6.0

Posted: 2009-11-05T16:44:32-07:00
by Wkidd
I'm trying to convert a pdf file to a jpg file on windows 2003 server, IIs6.0, and asp.

Other versions
1. ImageMagick version 6.5.7.3-Q16
2. ghostscript version 8.64

Code: Select all

Command Line
C:>Convert -density 300 test.pdf test.jpg      ' OK

Program with ImageMagickObject 
<%
Set Img = Server.CreateObject("ImageMagickObject.MagickImage.1")

Img.Convert "test.gif", "test.jpg"                                   ' OK
Img.Convert "-density", "300", "test.pdf", "test2.jpg"          ' Nothing happen
%>
The page does not give me any errors but it also does not convert the pdf to jpg.
I can use asp/com to convert a png or gif to a jpg but not a pdf. And it works on command line.

I think the problem is a security restriction in IIS.

It works fine if I change guest user group to power user group of the Internet Guest Account IUSR_TEST .

I have not found anyone to solve this problem for converting PDF file to JPG file in Windows COM+ & Visual Basic and Developers Board.

What that mean is nobody can use the windows ImageMagickObject with any other languages in windows server.

Any help would be greatly appreciated.

Re: Security restriction for converting PDF to JPG in IIS 6.0

Posted: 2009-11-16T02:43:33-07:00
by susana
Hello Wkidd, I have your same problem but with PHP, did you finaly could resolve it?
How?
Thanks a lot

Re: Security restriction for converting PDF to JPG in IIS 6.0

Posted: 2009-11-23T15:57:20-07:00
by Wkidd
The imageMagick doesn't work in IIS6.0 at all.

I think it's a same problem with other languages (ASP, PHP, ASP.NET) in IIS6.0.

Nobody has solved it in the imagemagick board and internet.

It's a big bug or doesn't support IIS ....

Re: Security restriction for converting PDF to JPG in IIS 6.0

Posted: 2010-01-05T11:57:07-07:00
by Wkidd
No answer .... no one can fix this bug ...

Do I have to give up using the Imagemagick in IIS ?

Does anyone recommend a good solution for converting from pdf, eps, or psd to jpg?

Re: Security restriction for converting PDF to JPG in IIS 6.

Posted: 2010-10-27T12:42:27-07:00
by allnet4u
I just install the imagemagic on my IIS 6 server.
still cant get it work...
did you solve youe problem?

i'm looking now to make png tranperency from eps file that have clipping path.
i found imagemagic and i'm hopping it's going to work under my IIS 6 and my asp code.

Re: Security restriction for converting PDF to JPG in IIS 6.

Posted: 2010-12-01T07:18:52-07:00
by nitech
Guys, it's wrong to conculde that Imagemagick doesn't work on IIS6. I've had it working on IIS6 for a long while. However I have problems with ghostscript with imagemagick on IIS7. Trying to find a solution now...