Rank: Advanced Member
Joined: 3/8/2011 Posts: 45
|
Hi,
I'm trying to embed PDF diagram inside PDF report. For this I'm using user defined block and inside it I use this:
<fox:external-document xmlns:fox="http://xmlgraphics.apache.org/fop/extensions" content-type="pdf" src="d:/reports/report.pdf_files/diagram1.pdf"/>
The report template is blank i.e. there is nothing at all inside it, only the user defined block. When I'm testing it I get
SEVERE: Exception org.apache.fop.apps.FOPException: org.apache.fop.fo.flow.Block cannot be cast to org.apache.fop.fo.pagination.Root java.lang.ClassCastException: org.apache.fop.fo.flow.Block cannot be cast to org.apache.fop.fo.pagination.Root at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:303) at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:130) at org.apache.fop.cli.Main.startFOP(Main.java:177) at org.apache.fop.cli.Main.main(Main.java:208)
I have tried 'src' parameter with url inside, with relative path, back slashes. The path is correct and the file exists. Same result.
Does anybody have some clue what can be done?
Thanks
|