Skip to posts
About Me
Diary of a Tech Guy
Make everything as simple as possible, but not simpler
Home
Blog
Macintosh
Programming
PHP MYSQL Programming
Windows
Browsing Posts in
PHP MYSQL Programming
Creating a thumbnail from a pdf file using PHP
March 6, 2010
Michael
No comments
Install ImageMagick and GhostScript first before using the code below.
<?php
$im = new imagick(‘file.pdf[0]‘);
$im->setImageFormat( “jpg” );
header( “Content-Type: image/jpeg” );
echo $im;
?>
The file.pdf[0] means page 1 of the file.
PHP MYSQL Programming
,
Windows
none
Read more
RSS
Categories
Blog
Macintosh
Programming
PHP MYSQL Programming
Windows
Recent Posts
How to uninstall Notes client from the Macintosh
We are “ReSources Team”
Separate/SplitFirstName and LastName from a single cell in Excel
Creating a thumbnail from a pdf file using PHP
Visual Basic 2010
Recent Comments
Reseller Hosting
on
How to Rip DVDs with Handbrake
Nicolas
on
Away from Home
Ivan
on
Mac OS Shortcut keys
Boldy
on
Mac OS Shortcut keys
SuperSonic
on
Mac OS Shortcut keys
Archives
May 2010
March 2010
February 2010
January 2010
October 2009
September 2009
August 2009
September 2010
M
T
W
T
F
S
S
« May
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Meta
Log in
Valid
XHTML