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 formatting in the HTML is not preserved #1

Open
GoogleCodeExporter opened this issue Jun 10, 2015 · 3 comments
Open

The formatting in the HTML is not preserved #1

GoogleCodeExporter opened this issue Jun 10, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?

HtmlImageGenerator imageGenerator = new HtmlImageGenerator();
imageGenerator.loadUrl("http://www.google.co.uk");
imageGenerator.saveAsImage("hello-world.png");

What is the expected output? What do you see instead?
The formatting is not correct at all, and the elements on google's start page 
are not where they should be. I have tried with a few web pages but none works 
as expected. 

What version of the product are you using? On what operating system?
0.9, Mac OS.

Please provide any additional information below.
There is also quite a few web pages where the tool throws an Exception (e.g. 
java.lang.RuntimeException: Unclosed "  )  Not sure why? If there is a problem 
with the HTML, it would be good if it could print the line number and 
information about what is wrong.

Original issue reported on code.google.com by [email protected] on 12 Feb 2011 at 9:58

@GoogleCodeExporter
Copy link
Author

Will it be fixed?
I would like to use some background images too.

Original comment by [email protected] on 10 Mar 2012 at 3:42

@GoogleCodeExporter
Copy link
Author

yes... it is not picking up the styling properly... i have added a few styles 
within the header + a few are defined with tags... I am creating a table... and 
need to do border-collapse: collapse but thats not working at all. there are 
other styling issues as well

Original comment by [email protected] on 24 May 2012 at 6:45

@GoogleCodeExporter
Copy link
Author

Use a complete url in your css to get the background images working, don't try 
using relative paths.

Original comment by [email protected] on 24 Jul 2013 at 4:06

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