You should have a look at Flying Saucer/xhtmlrenderer (https://xhtmlrenderer.dev.java.net/). It handles every CSS rule I could throw at it. If you simply need a commandline app converting a XHTML file into a PDF, you're done in 10 lines of code.
No comments yet.