HTML to anything printable converter

A

Aaron Fude

Hi,

This is not really a java question, but java is my language of choice
so I'm posting it here.

I have to print a great number of web report each day and I would like
to find a java solution that downloads the HTML (that's easy), renders
it somehow (hopefully there is not too much javascript) and prints it.
So I would be very happy to find a cheap or free HTML->PDF or HTML-
Image java based solution.

Thanks!

Aaron Fude
 
A

Andrew Thompson

Aaron Fude wrote:
...
I have to print a great number of web report each day and I would like
to find a java solution that downloads the HTML (that's easy), renders
it somehow (hopefully there is not too much javascript) and prints it.
So I would be very happy to find a cheap or free HTML->PDF or HTML-

I might suggest JEditorPane for the rendering, but it
will still (in Java 6) fail to render most 'real world' web
pages as you or I might expect them, but there is also
the possibility to hook into the native browser, and use
that to print the pages.*

I am not sure quite why you would want to do the
intermediary conversion from HTML to either image
or PDF, since it will hardly 'gain' anything from the
conversion.

* For using the native browser, see JDIC.
<https://jdic.dev.java.net/>

--
Andrew Thompson
http://www.physci.org/

Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.aspx/java-general/200711/1
 
G

Gordon Beaton

I have to print a great number of web report each day and I would
like to find a java solution that downloads the HTML (that's easy),
renders it somehow (hopefully there is not too much javascript) and
prints it. So I would be very happy to find a cheap or free
HTML->PDF or HTML- Image java based solution.

Google suggested this:
http://www.javaworld.com/javaworld/jw-04-2006/jw-0410-html.html

As far as retrieving the html document goes, I'd script it and use a
tool like curl or wget.

/gordon

--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,777
Messages
2,569,604
Members
45,219
Latest member
KristieKoh

Latest Threads

Top