juforg / java-html2image

Automatically exported from code.google.com/p/java-html2image
0 stars 1 forks source link

The image is not as same as html #10

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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

Attachments: