2017-04-03 64 views
0

我用下面的标签是否可以在XSL FO的末尾嵌入PDF文档?

<fox:external-document src="Resources/test.pdf" /> 

但其抛出下面的错误。

2017年4月3日上午10点15分31秒org.apache.fop.events.LoggingEventListener 严重的processEvent:未提供图片。 URI:Resources/test.pdf。 原因:org.apache.xmlgraphics.image.loader.ImageException:文件 格式不受支持。没有找到ImagePreloader for Resources/test.pdf(没有可用的上下文信息) org.apache.xmlgraphics.image.loader.ImageException:不支持文件格式为 。没有在 org.apache.xmlgraphics.image.loader.ImageManager.preloadImage(ImageManager.java:180)发现资源/检验.pdf ImagePreloader

我已妥善保管的命名空间。

回答

1

我使用FOP 2.1和包括PDF作为外部显卡成功地使用FOP PDF Images Plugin

“四个jar文件应该放在你的FOP 安装的lib目录”

我认为我的下载是从here

+0

@ rahul-johny,这有助于你的问题吗? –

相关问题