User    Pass    













Key Benefits




Standards Supported




Download Now


API Documentation


Developers Guide


Code Examples


Updated Builds


Technical Articles






Jump to:

General WebRenderer Functions

  WebRenderer example code base.


Advanced WebRenderer functions


Application test examples


Deploying WebRenderer

WebRenderer DOM




Saving pages as an Image




Saving HTML pages as an image

The IBrowserCanvas method savePageToBitmapImage saves the rendered document to the local disk. The savePageToBitmapImage method can either save the whole document or the section rendered on screen.

IBrowserCanvas browser = BrowserFactory.spawnMozilla();

// Saves the page to the working directory, the boolean switch is to save the full page and not just area displayed.
// It is important to wait until the document has completed loading before saving the content

browser.addNetworkListener(new NetworkAdapter() {
         public void onDocumentComplete(NetworkEvent e) {
                browser.savePageToBitmapImage("savepagetest.png", true);

The save format is a PNG image which is a lossless compressed bitmap image



Millions of deployments and counting.. Users of JadeLiquid's tools can be found in every corner of the Earth




 > Enabling Flash in WebRenderer - Article
 > Browser Zoom Effect using WebRenderer - Article
 > Applet deployment techniques - Article
 > WebRenderer core features on display! - Article
   Additional News  
 > Enabling HTML 5 WebSockets in WebRenderer - Blog
 > 64bit WebRenderer deployment with Web Start - Blog
 > Deploying WebRenderer Server Edition in Tomcat - Blog
 > WebRenderer 6 adds performance text search - Blog


 Java and the Java Logo are trademarks or registered trademarks of Oracle Corporation in the United States and other countries 

Privacy Policy  |   Disclaimer