IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

PDF inside PDF issue Options · View
micky
Posted: Wednesday, May 27, 2015 5:27:53 AM
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
Users browsing this topic
guest

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.