render HTML (convert to bitmap)

后端 未结 3 1595
说谎
说谎 2021-01-03 10:25

Can somebody recommend the best (and preferably portable) way to render HTML documents onto a bitmap? As far as I understand my main 2 options are WebKit and Gecko, but I w

相关标签:
3条回答
  • 2021-01-03 11:18

    You can do this from the command line using webkit2png.py, which uses Python and QtWebKit (though I haven't tried it myself yet).

    0 讨论(0)
  • 2021-01-03 11:21

    The most promising solution I found so far is this http://sites.google.com/site/torisugari/commandlineprint2 extension for Firefox which adds a command line option for printing a file to a printer, PNG, PostScript or PDF file.

    0 讨论(0)
  • 2021-01-03 11:29

    You can try the ScreenGrab plug-in for Firefox.

    0 讨论(0)
提交回复
热议问题