I write client application to hylafax. Hylafax can send only ps (postscript)
files (am I wrong). My program recives html files (from www application) to
send. How could I convert html file to ps?
I can use JEditorPane to convert html to image, but I don't know how save it
as ps file.
Somebody could help me? This is important for me.
Roedy Green - 15 Apr 2006 22:39 GMT
>I can use JEditorPane to convert html to image, but I don't know how save it
>as ps file.
see http://mindprod.com/jgloss/printing.html

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
Gerbrand van Dieijen - 16 Apr 2006 10:51 GMT
qwer schreef:
> I write client application to hylafax. Hylafax can send only ps (postscript)
> files (am I wrong). My program recives html files (from www application) to
> send. How could I convert html file to ps?
> I can use JEditorPane to convert html to image, but I don't know how save it
> as ps file.
> Somebody could help me? This is important for me.
The easiest way is using a commandline linux/unix utility. If the
hylafax server runs under Windows (don't know if that is even possible),
you could use Cygwin.
I don't know a utitiy by name, but after very shortly searching on
freshmeat I found:
http://freshmeat.net/projects/htmldoc/
The program can be launched batch (command-line) so I think it's useful.
I would urge not to reinvent the wheel yourself.