fsi*_*fsi 10 grails jasper-reports
关注使用BATIK的许多问题和答案,我无法修复我的错误,我找不到任何可能有用的东西.这个问题没有答案.
我的问题是当我在我的应用程序上下载pdf时,出现错误(我甚至尝试包含jar):
java.lang.ClassNotFoundException: org.apache.batik.dom.svg.SVGOMDocument
Run Code Online (Sandbox Code Playgroud)
在我的碧玉报告中,我有这个包括:
<image>
<reportElement x="453" y="117" width="246" height="115"/>
<imageExpression class="net.sf.jasperreports.engine.JRRenderable"><![CDATA[net.sf.jasperreports.renderers.BatikRenderer.getInstance(new java.io.File("C:\\Project\\myProject\\web-app\\images\\tomcat.svg"))]]>
</imageExpression>
</image>
Run Code Online (Sandbox Code Playgroud)
基本上,我的BuildConfig.groovy是这样的:
inherits("global") {
excludes 'xml-apis', 'xml-apis-ext', 'xercesImpl'
}
Run Code Online (Sandbox Code Playgroud)
和我的依赖:
compile("org.apache.xmlgraphics:fop:0.94",
"org.apache.xmlgraphics:batik-transcoder:1.7",
"org.apache.xmlgraphics:batik-codec:1.7",
"org.apache.xmlgraphics:batik-awt-util:1.7",
"org.apache.xmlgraphics:batik-bridge:1.7",
"org.apache.xmlgraphics:batik-dom:1.7",
"org.apache.xmlgraphics:batik-gvt:1.7",
"org.apache.xmlgraphics:batik-svg-dom:1.7",
"org.apache.xmlgraphics:batik-svggen:1.7",
"org.apache.xmlgraphics:batik-util:1.7",
"org.apache.xmlgraphics:batik-xml:1.7",
"org.apache.xmlgraphics:batik-anim:1.7",
"org.apache.xmlgraphics:batik-css:1.7",
"org.apache.xmlgraphics:batik-ext:1.7",
"org.apache.xmlgraphics:batik-js:1.7",
"org.apache.xmlgraphics:batik-parser:1.7",
"org.apache.xmlgraphics:batik-script:1.7",
"org.apache.xmlgraphics:xmlgraphics-commons:1.2",
"commons-logging:commons-logging:1.0.4",
"org.apache.avalon.framework:avalon-framework-api:4.3.1",
"org.apache.avalon.framework:avalon-framework-impl:4.3.1",
"xalan:xalan:2.6.0",
"xml-apis:xml-apis-ext:1.3.04"
){
transitive = false
Run Code Online (Sandbox Code Playgroud)
为什么我无法下载?svg无效?我从wiki 获得了这个 svg.
| 归档时间: |
|
| 查看次数: |
2659 次 |
| 最近记录: |