cannot resolve XSLFImageRendener and XSLFRenderingHint

老子叫甜甜 提交于 2019-12-11 07:59:38

问题


I am using example of conversion from pptx to svg. I took the code from PPTX2SVG

And added dependencies to my gradle application

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"

However it is unable to resolve classes XSLFImageRendener and XSLFRenderingHint.

What dependencies are missing? As there is no imports in the example code I assume that it should be in org.apache.poi.xslf.usermodel package

I am using poi=3.16 and batik=1.9


回答1:


The official note:

Please note that XSLF is still in early development and is a subject to incompatible changes in a future release.

So POI 3.16 is not compatible with 3.15.

I fix the compatibility and rewrite the PPTX2SVG.java at Github:

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



来源:https://stackoverflow.com/questions/43849335/cannot-resolve-xslfimagerendener-and-xslfrenderinghint

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!