title: Rendering HTML (w/ javascript) and Converting to an Image
body: <p>I have an HTML page that has Javascript code. It needs to be rendered first before it can be converted into an image. </p>
  
  <p>I am aware of projects like wkhtmltoimage, PhantomJS, khtmltopng, webkit2png, PrinceXML and html2image. I have implemented a few of those but I am trying to find a pure Java solution that does not have to use Process to execute a command. Any help would be great, thanks!</p>
  
  <p>edit: I looked into Cobra however it seems that the JS support is still in dev and it does not parse my html file properly.</p>
  
  <p>Or if there are any other ways of doing this, please let me know. I am just trying to find the best solution possible.</p>