title: HTML file convert it to image file locally
body: <p>I have <code>a.html</code> file which contains a table and I want to convert and save it locally as image.</p>
  
  <p>Is it possible?</p>
  
  <p>In order to save it as image I tried this:</p>
  
  <pre><code>ImageIO.write(image, "png", new File("image.png"));
  </code></pre>
  
  <p><a href="https://code.google.com/p/java-html2image/" rel="nofollow">a library to convert html to image</a> but it is for online html page.</p>