June 25, 2008 | In: php, tutoriales, utilidades
<?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;
?>
(el cero que está entre [ ] es el numero de páginas)
Articulo original: Creating a PDF preview
Gracias a: http://valokuva.org