Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The image is not as same as html #10

Open
GoogleCodeExporter opened this issue Sep 10, 2015 · 0 comments
Open

The image is not as same as html #10

GoogleCodeExporter opened this issue Sep 10, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant