Hi,
I have the same issue. It seems some OLE Objects aren't supported by POI.
Only equations and embedded .exe aren't copy properly in my new XMLSlideShow
for others, everything works perfectly.
I run on the poi 4.0 beta.
Here is my code:
//For each slideshow
for(int i = 0; i<file.length; i++)
{
//Do some stuff
is = new FileInputStream(file[i]);
src = new XMLSlideShow(is);
is.close();
//For each slide in slideshow
for(XSLFSlide srcSlide : src.getSlides())
{
//Do some stuff
for(XSLFSlideLayout layout : templateSlideLayouts)
{
//Lorsqu'un layout correspond
if(srcSlide.getSlideLayout().getName().equals(layout.getName()))
{
//If we found the right layout, save it in
src_sl
src_sl = layout;
break;
}
//Default layout: the second one
else src_sl = templateSlideLayouts.get(1);
}
newSlide =
ppt.createSlide(src_sl).importContent(src_sl);
newSlide.importContent(srcSlide);
new_sm = newSlide.getSlideMaster();
new_sm.importContent(src_sm);
}
frame.updateOutputText("Ajout terminé");
}
//Do some stuff
out = new FileOutputStream(frame.getOutputFilePath());
ppt.write(out);
out.close();
Thanks for your help!
PS: I can't attach my sample slideshows because those are restricted.
--
View this message in context:
http://apache-poi.1045710.n5.nabble.com/Trouble-with-embedded-OLE-in-pptx-file-tp5090544p5712741.html
Sent from the POI - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]