我正在使用从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"

但是,它无法解析类XSLFImageRendenerXSLFRenderingHint

缺少哪些依赖项?由于示例代码中没有导入,因此我假设它应该在org.apache.poi.xslf.usermodel包中

我正在使用poi=3.16batik=1.9

最佳答案

The official note:



因此POI 3.16与3.15不兼容。

我修复了兼容性,并在Github上重写了PPTX2SVG.java:

https://gist.github.com/ji-zhou/37f8a40fc1c889563736c82cb270921f

08-18 01:53