note 113801 added to imagick.construct

From: Date: Wed, 04 Dec 2013 11:05:55 +0000
Subject: note 113801 added to imagick.construct
Groups: php.notes 
Request: Send a blank email to php-notes+get-197737@lists.php.net to get a copy of this message
you can use PDF page as image. To do that, install ghostscript libraries. IMagick use ghostscript to read PDF page. <?php $myurl = '/pdf/mypdf.pdf'; $image = new Imagick(realpath($myurl).'[0]'); //[0] indicate the number of the wanted page $image->setResolution( 300, 300 ); $image->setImageFormat( "png" ); $image->writeImage(realpath('./mypdf.png')); ?> ---- Server IP: 72.52.91.14 Probable Submitter: 72.52.91.14 ---- Manual Page -- http://php.net/manual/en/imagick.construct.php Edit -- https://master.php.net/note/edit/113801 Del: integrated -- https://master.php.net/note/delete/113801/integrated Del: useless -- https://master.php.net/note/delete/113801/useless Del: bad code -- https://master.php.net/note/delete/113801/bad+code Del: spam -- https://master.php.net/note/delete/113801/spam Del: non-english -- https://master.php.net/note/delete/113801/non-english Del: in docs -- https://master.php.net/note/delete/113801/in+docs Del: other reasons-- https://master.php.net/note/delete/113801 Reject -- https://master.php.net/note/reject/113801 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#197737) next »