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

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
flipmedia
Posts: 2
Joined: 2011-03-07T00:12:47-07:00
Authentication code: 8675308

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

Post 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
flipmedia
Posts: 2
Joined: 2011-03-07T00:12:47-07:00
Authentication code: 8675308

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

Post 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
glodakan
Posts: 1
Joined: 2011-04-06T10:29:19-07:00
Authentication code: 8675308

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

Post by glodakan »

hi flipmedia
how to creat pdf thumbnail from pdf url ?
thanks.
Post Reply