Hi Friends ,
I got the solution for my problem , We can use that following code :
$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
Search found 2 matches
- 2011-03-07T00:51:30-07:00
- Forum: Developers
- Topic: How to use imageMagic to make preview of PDF without exec()
- Replies: 2
- Views: 8676
- 2011-03-07T00:42:49-07:00
- Forum: Developers
- Topic: How to use imageMagic to make preview of PDF without exec()
- Replies: 2
- Views: 8676
How to use imageMagic to make preview of PDF without exec()
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/how-to-create-pdf-preview-images-in-php-part-2/comment-page-1/#comment-691 .But I have not exec() function ...
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/how-to-create-pdf-preview-images-in-php-part-2/comment-page-1/#comment-691 .But I have not exec() function ...