We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

This export format is not implemented for PPT yet

Hi guys,


I have the library Aspose.Slides v2.9.6 and I want to do a powerpoint presentation.
My code is as follows:

Presentation pres=new Presentation();
Slide sl=pres.addEmptySlide();
BufferedOutputStream fo=new BufferedOutputStream(new FileOutputStream(fileName + “.png”));

BufferedImage bi=new BufferedImage(draw.getMaxWidth(0), draw.getMaxWidth(0), BufferedImage.TYPE_INT_ARGB);

draw.getPage(0).drawOnImage(bi);
ImageIO.write(bi,“png”,fo);
fo.close();

InputStream in=new FileInputStream(fileName “.png”);

Picture pct=new Picture(pres, in);
int id=slp.add(pct);
sl.getShapes().addPictureFrame(id, 0, 0, draw.getMaxWidth(), draw.getMaxHeight());

pres.save(fileName,SaveFormat.PPTX);

But it gives me an error "This export format is not implemented for PPT yet."

What i’m doing wrong?

Thank You,
Paulo Fernandes

Hi Paulo,

Thank you for considering Aspose.

Well, you are using a very old version of Aspose.Slides for Java and I would suggest you to download and try the latest version of Aspose.Slides for Java v14.7.0 and try it. In case you still face any issue, please feel free to contact support. The latest version removes the interconversion issues between PPT and PPTX file formats.

Thanks & Regards,