1
2
3
4
5
6
7
8
9
10
11
12
| < ?php
//读取pdf页面的第一页
$im = new Imagick('mysql.pdf[0]');
//设置输出图片的格式
$im->setImageFormat('png');
//输出图片
header('Content-Type:image/png');
echo $im;
?> |

Tags: imagick, pdf, PHP
This entry was posted
on 星期三, 十二月 23rd, 2009 at 5:46 上午 and is filed under
PHP.
You can follow any responses to this entry through the
RSS 2.0 feed.
You can
leave a response, or
trackback from your own site.
Comments