Generating PDF from XML in Java using ApacheFOP
问题 I am trying to generate on-the-fly PDF reports from Java objects. I have not been able to find many examples of this, so I have been following this example: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/examples/embedding/java/embedding/ExampleObj2PDF.java?view=markup The only real difference between this code and my own is that I generate src (line 81 in the example) using JSON conversion and an XMLSerializer. The problem I run into is using the Transformer. When I do the transform