码迷,mamicode.com
首页 > Web开发 > 详细

Phantomjs

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

标签:filename   code   文件夹   format   file   pre   form   .com   cli   

*

在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

标签:filename   code   文件夹   format   file   pre   form   .com   cli   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!