首页 > Web开发 > 详细

Phantomjs

时间:2016-10-31 13:35:37      阅读:241      评论:0      收藏:0      [点我收藏+]

*

在phantomjs提供的例子js文件夹中,右键打开cmd窗口:

E:\OpenSource\phantomjs-2.1.1-windows\examples>phantomjs rasterize.js
Usage: rasterize.js URL filename [paperwidth*paperheight|paperformat] [zoom]
  paper (pdf output) examples: "5in*7.5in", "10cm*20cm", "A4", "Letter"
  image (png/jpg output) examples: "1920px" entire page, window width 1920px
                                   "800px*600px" window, clipped to 800x600

E:\OpenSource\phantomjs-2.1.1-windows\examples>phantomjs rasterize.js http://www.baidu.com e://temptest/phantomjs/123baidu.pdf
status:success

E:\OpenSource\phantomjs-2.1.1-windows\examples>phantomjs rasterize.js http://127.0.0.1/edsa-builder/ e://temptest/phantomjs/123baidu.pdf
status:success

E:\OpenSource\phantomjs-2.1.1-windows\examples>

 

*

Phantomjs

原文:http://www.cnblogs.com/qingmaple/p/6015131.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!