I attached the html and converted code.
and the code is quite simple
@Test
public void htmlToJpg() throws MalformedURLException{
HtmlImageGenerator imageGenerator = new HtmlImageGenerator();
String uri = new File("//home/gnsg/Desktop/test.html").toURL().toString();
imageGenerator.loadUrl(uri);
imageGenerator.saveAsImage("hello-world123.png");
// imageGenerator.saveAsHtmlWithMap("hello-world.html", "hello-world.png");
}
Original issue reported on code.google.com by yhj...@gmail.com on 30 Jun 2012 at 7:37
Original issue reported on code.google.com by
yhj...@gmail.com
on 30 Jun 2012 at 7:37Attachments: