我正在使用从pptx
转换为svg
的示例。我从
PPTX2SVG
并向我的gradle
应用程序添加了依赖项
compile "org.apache.poi:poi:$apachePoiVersion"
compile "org.apache.poi:poi-ooxml:$apachePoiVersion"
compile "org.apache.poi:poi-ooxml-schemas:$apachePoiVersion"
compile "org.apache.xmlgraphics:batik-svggen:$apacheBatikVersion"
compile "org.apache.xmlgraphics:batik-transcoder:$apacheBatikVersion"
compile "org.apache.xmlgraphics:batik-svg-dom:$apacheBatikVersion"
但是,它无法解析类
XSLFImageRendener
和XSLFRenderingHint
。缺少哪些依赖项?由于示例代码中没有导入,因此我假设它应该在
org.apache.poi.xslf.usermodel
包中我正在使用
poi=3.16
和batik=1.9
最佳答案
The official note:
因此POI 3.16与3.15不兼容。
我修复了兼容性,并在Github上重写了PPTX2SVG.java:
https://gist.github.com/ji-zhou/37f8a40fc1c889563736c82cb270921f