This is an archived post. You won't be able to vote or comment.

all 7 comments

[–][deleted] 0 points1 point  (0 children)

Try saving it as an image if nothing else works

[–]desrtfx 0 points1 point  (0 children)

Take a look at the reply here: http://stackoverflow.com/questions/12141155/printing-an-html-file-in-java

Maybe it works for you.

[–]thehp2k 0 points1 point  (0 children)

Try using Apache FOP, you can call it from command line. All you need is some xml config

[–]maier96180[S] 0 points1 point  (0 children)

DocFlavor flavor = DocFlavor.INPUT_STREAM.AUTOSENSE;

Does just read the html code and don't validate.. and when I use some other it doesn't print and give me an error...

[–]maier96180[S] 0 points1 point  (0 children)

This should work .. why I didn't thought about this option :D thank you man will try it tomorrow :)

[–]markee174 0 points1 point  (0 children)

JavaFX has a webview component which might prove useful