Creating a PDF preview : Create and modify images : Graphics Image PHP Source Code


PHP Source Code » Graphics Image » Create and modify images »

 

Creating a PDF preview


<?php
/* Read page 1 */
$im = new imagick'test.pdf[0]' );
/* Convert to png */
$im->setImageFormat"png" );
/* Send out */
header"Content-Type: image/png" );
echo 
$im;
?>


HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo Graphics Image
» Create and modify images