Page 1 of 1

How to use imageMagic to make preview of PDF without exec()

Posted: 2011-03-07T00:42:49-07:00
by flipmedia
Hi Pals,
I am new to imageMagick , I need to create the image of my first page of PDF for the purpose of PREVIEW.
I got a fantastic stuff from URL : http://www.webvamp.co.uk/blog/webvamp/h ... omment-691.But I have not exec() function access in my server . without that How can I implement same thing , waiting your reply
any one can advise me and reply at : anes(dot)pa(@)gmail(dot)com

Thankfully
Anes P.A

Re: How to use imageMagic to make preview of PDF without exe

Posted: 2011-03-07T00:51:30-07:00
by flipmedia
Hi Friends ,
I got the solution for my problem , We can use that following code :

Code: Select all

$myurl = 'pdf-test.pdf[0]';
$image = new Imagick($myurl);
$image->setResolution( 300, 300 );
$image->setImageFormat( "png" );
$image->writeImage('newfilename.png');
ok thanks for your support.

Bye Anes

Re: How to use imageMagic to make preview of PDF without exe

Posted: 2011-04-06T10:31:11-07:00
by glodakan
hi flipmedia
how to creat pdf thumbnail from pdf url ?
thanks.