通过php+imagick 创建PDF图片预览

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

pdf转图片

 

Tags: , ,

Comments

No comments so far.
  • Leave a Reply
     
    Your gravatar
    Your Name
     
     
     
     
     
 
About This Website

Lamp development & SEO & Plan of Website & Project Managment

Learn more »
Follow Us (SNS)
Help & Support

more about Bruce.xu»

Get in touch

QQ: +252339382
Email: shjuto @ gmail.com

Online contact form »