Convert Images to PPT with the help of Apache poi | Community
Skip to main content
Level 2
August 14, 2019
Solved

Convert Images to PPT with the help of Apache poi

  • August 14, 2019
  • 1 reply
  • 1856 views

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.    

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by WasilZee

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

1 reply

WasilZeeAdobe EmployeeAccepted solution
Adobe Employee
August 14, 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