Best Answer - Chosen by Asker
It is possible in PHP, although you were right, you need a few libraries.
ImageMagic:
http://us3.php.net/imagick
Ghostscript:
http://sourceforge.net/projects/ghostscr…
Then, this code will get your thumbnail:
<?php
$im = new imagick('file.pdf[0]');
$im->setImageFormat( "jpg" );
header( "Content-Type: image/jpeg" );
echo $im;
?>
Haven't tried it myself, but seems like it would work
ImageMagic:
http://us3.php.net/imagick
Ghostscript:
http://sourceforge.net/projects/ghostscr…
Then, this code will get your thumbnail:
<?php
$im = new imagick('file.pdf[0]');
$im->setImageFormat( "jpg" );
header( "Content-Type: image/jpeg" );
echo $im;
?>
Haven't tried it myself, but seems like it would work
0 comments:
Post a Comment