Convert Images to PPT with the help of Apache poi

Avatar

Avatar

shahrukha567143

Avatar

shahrukha567143

shahrukha567143

14-08-2019

I'm using Apache POI Library (org.apache.poi.xslf.usermodel.XMLSlideShow;) for creating PPTs with existing DAM images. The code is done. But the conflicts is happening at runtime while resolving bundle .

The POI library is part of AEM core library which is resolving dependency automatically with core library as :

org.apache.poi.xslf.usermodel,version=3.0.0 from com.adobe.granite.poi (73)

The version I'm using in code is POI 3.9 but as it's taking from core library it's not finding desired method giving NoSuchMethodError.

Please suggest any way to resolve this.    

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

WASIL

Employee

Avatar

WASIL

Employee

WASIL
Employee

14-08-2019

Create a wrapper bundle[1] for you version of POI and use explicit import for the packages in your bundle.

HTH.

Thanks

Wasil

[1] How to Wrap Bundles · bndtools/bndtools Wiki · GitHub

Answers (0)