what is the best way ( if there is any ) in 开发者_运维问答java to convert html with css2 support to postscript file ?
Are you on linux? If so your best bet might be to first convert to pdf, and then use the command line utilty pdf2ps
. According to this question iText does html to pdf, although the CSS support may not be great.
I think your best bet is iText which is a java library with support for direct HTML to PDF translation.
精彩评论