balbuenac / flying-saucer

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

Trying to render html to png. Autoheight is always 16px? #233

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create valid xhtml file. (Used the w3.org validator to check)
2. Java2DRenderer renderer = new Java2DRenderer(xHtmlFile, 600); - dont specify 
height, to have it determined automatically
3. BufferedImage buffImg = renderer.getImage();
4. System.out.println("buffImg.width = " + buffImg.getWidth()); - it's 16 
pixels.
5. Writing the png to a file actually makes it 16 pixels high too.

What is the expected output? What do you see instead?
I'm expecting to see my html rendered to an image, but I only see the top 
600x16 pixels of it.

What version of the product are you using? On what operating system?
Latest version, WIndows 7. 

Please provide any additional information below.

Original issue reported on code.google.com by ingo.woh...@gmail.com on 5 Mar 2014 at 11:20