How to make pdf work with imagick?

IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
Post Reply
GenericUser813
Posts: 7
Joined: 2010-10-06T02:11:18-07:00
Authentication code: 8675308

How to make pdf work with imagick?

Post by GenericUser813 »

Hi, i installed imagick, imagemagick and php on my win 7 apache webserver and imagick works just fine with images, but when i try to work with PDF file it says: "Postscript delegate failed blah blah".
I googled something about ghostscript, does it mean i need to instal it too, or it does come with imagemagick installation automatically, only i just have config error somewhere?

thanx
el_supremo
Posts: 1015
Joined: 2005-03-21T21:16:57-07:00

Re: How to make pdf work with imagick?

Post by el_supremo »

IM uses Ghostscript to handle PDF files so you must have Ghostscript installed.

Pete
Sorry, my ISP shutdown all personal webspace so my MagickWand Examples in C is offline.
See my message in this topic for a link to a zip of all the files.
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: How to make pdf work with imagick?

Post by Bonzo »

I just downloaded it from: http://www.ghostscript.com/
I am not sure if you need to install GS before IM or not.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: How to make pdf work with imagick?

Post by fmw42 »

Bonzo wrote:I just downloaded it from: http://www.ghostscript.com/
I am not sure if you need to install GS before IM or not.
GS should be installed and then re-install IM
GenericUser813
Posts: 7
Joined: 2010-10-06T02:11:18-07:00
Authentication code: 8675308

Re: How to make pdf work with imagick?

Post by GenericUser813 »

And does it has to be ghostscript? Can't i make it work with adobe reader?
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: How to make pdf work with imagick?

Post by Bonzo »

I very much doubt it would work with Adobe - why do you not want to install GS ?
GenericUser813
Posts: 7
Joined: 2010-10-06T02:11:18-07:00
Authentication code: 8675308

Re: How to make pdf work with imagick?

Post by GenericUser813 »

Well its just, i have adobe installed for work with pdfs and i don't need to work with pdfs in imagick all that much, so its seems such a waste install second pdf reader :) Can imagick also convert images INTO pdf with ghostscript? That would be sweet.
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: How to make pdf work with imagick?

Post by Bonzo »

From memory you can convert an image file e.g. jpg into a pdf image.
Post Reply