How can I automate HTML-to-PDF conversions?

后端 未结 14 871
攒了一身酷
攒了一身酷 2020-12-23 19:29

I\'ve been using htmldoc for a while, but I\'ve run into some fairly serious limitations. I need the end solution to work on a Linux box. I\'ll be calling this library/utili

14条回答
  •  轮回少年
    2020-12-23 20:17

    You should have a look at http://phantomjs.org/

    Conversion can be done by a small script rasterize.js and then issuing

    phantomjs rasterize.js 'http://en.wikipedia.org/w/index.php?title=Jakarta&printable=yes' jakarta.pdf
    

提交回复
热议问题