HTML rendering (bitmap conversion)

Can anyone recommend a better (and preferably portable) way to render HTML documents into a bitmap? As far as I understand, my main 2 options are WebKit and Gecko, but I could not find a good starting point on how to do this. The last time I tried to do this 5 years ago, I ended up using Gecko to send a document to a printer, which is not exactly what I need. I need a bitmap rendering in memory.

To clarify: the server side, no Java, no .NET, batch processing, performance, not interactive, without Javascript.

+3
source share
3 answers
0

, webkit2png.py, Python QtWebKit ( ).

+5

You can try the ScreenGrab plugin for Firefox.

0
source

Source: https://habr.com/ru/post/1740979/


All Articles