• Phantomjs


    *

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

    E:OpenSourcephantomjs-2.1.1-windowsexamples>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:OpenSourcephantomjs-2.1.1-windowsexamples>phantomjs rasterize.js http://www.baidu.com e://temptest/phantomjs/123baidu.pdf
    status:success
    
    E:OpenSourcephantomjs-2.1.1-windowsexamples>phantomjs rasterize.js http://127.0.0.1/edsa-builder/ e://temptest/phantomjs/123baidu.pdf
    status:success
    
    E:OpenSourcephantomjs-2.1.1-windowsexamples>

    *

    有问题在公众号【清汤袭人】找我,时常冒出各种傻问题,然一通百通,其乐无穷,一起探讨


  • 相关阅读:
    Learn Prolog Now 翻译
    Learn Prolog Now 翻译
    Learn Prolog Now 翻译
    Learn Prolog Now 翻译
    Learn Prolog Now 翻译
    Learn Prolog Now 翻译
    Learn Prolog Now 翻译
    Learn Prolog Now 翻译
    Learn Prolog Now 翻译
    Learn Prolog Now 翻译
  • 原文地址:https://www.cnblogs.com/qingmaple/p/6015131.html
Copyright © 2020-2023  润新知