I am using WebRenderer to export HTML5 pages to images on the server. The problem is that the only edition that supports HTML5 is the swing edition. However, I can use the jar files from the swing edition and create a new IMozillaBrowserCanvas
object and not link it to a JFrame/JPanel and have it convert the html5 page without a GUI.
Are there any differences between the swing and server edition when just using IMozillaBrowserCanvas
? The only info I could was find was this:
The WebRenderer Server Edition 4.0 scales better in server and headless environments than any other Java browser SDK due to the fact that rendering is not performed on the Swing Thread. Keeping rendering off the Swing Thread, and multi-threading the rendering leads to major improvements in scalability. [Source]
Also, what is happening in the back end when the spawnMozilla()
method is being called from the BrowserFactory
class? To my knowledge, this is just a pure java browser and not running xserver in the background.