I'm trying to insert an EPS image into my PDF with FOP.  Looking thru the archives, I see that EPS is supposed to work, but only displays when the PDF is printed.  So far, that seems to ring true.
 
However, I have FOP embedded in a servlet, and the second time I try to create the same PDF with the EPS image, I get this error:
 
INFO    10219   [fop     ] (): [1]
java.lang.NullPointerException
        at org.apache.fop.pdf.PDFXObject.output(PDFXObject.java:124)
        at org.apache.fop.pdf.PDFDocument.output(PDFDocument.java:1202)
        at org.apache.fop.render.pdf.PDFRenderer.render(PDFRenderer.java:708)
        at org.apache.fop.apps.StreamRenderer.queuePage(StreamRenderer.java:217)
 
        at org.apache.fop.layout.AreaTree.addPage(AreaTree.java:81)
        at org.apache.fop.fo.pagination.PageSequence.format(PageSequence.java:30
7)
        at org.apache.fop.apps.StreamRenderer.render(StreamRenderer.java:200)
        at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:182)
        at org.apache.fop.tools.DocumentReader.parse(DocumentReader.java:463)
        at org.apache.fop.apps.Driver.render(Driver.java:481)
        at org.apache.fop.apps.Driver.render(Driver.java:501)
        at org.apache.fop.apps.Driver.run(Driver.java:552)
 
 
Anybody know why?
 
Also, I noticed that I'm getting line numbers on all the FOP code, which means a debug compile.  I rebuilt FOP with jimi, so maybe this is my fault.  Is there some way to get an optimized build that I missed?
 
 
Thanks,
Scott

Reply via email to