Could anyone point me in the right direction of how I could transform my XML to PDF without creating an intermediate file?
send your XML to a PipedOutputStream pos and use an InputSource(pos.getInputStream())
make your XML thing a Thread and start() it.