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

Free Support Forum - aspose.com

Converting pptx to ppt

Hi Team!,

I Convert the .pptx file to .ppt to use the following code,

String ippath = path+fArr[i].getName();

String outpath = path +fArr[i].getName().substring(0,fArr[i].getName().indexOf("."));


sourceFilePath = new SmbFile( ippath,


sourceFilePath2 = new SmbFile( outpath,


PresentationEx pres = new PresentationEx(sourceFilePath.getInputStream());


here ippath containes the .pptx file path

and outpath containes the converted file storing place.

But THE MAIN PROBLEM IS when i am using the converted ppt, for creationg the thumbnails folder and images in that time i face the OUT OF MEMORY HEAP SIZE ERROR IS COMEING PLS give solution its very urgernt

for creating the images in thumbnail folder i use the following lines of code....

presentation pres = new Presentation(inputStream);

Slide slide = slds.get((slideCount));

image = (BufferedImage) slide.getThumbnail(new Dimension(390, 430));



new File(folderPath.getPath() + ModuleConstants.FOLDER_SEPARATOR + (slideCount+1) +


pls respod quickely...........

Thanks in advance

Hi Vijay,

Thanks for your interest in Aspose.Slides.

It would be great, If you can share your presentation files for investigation purposes.


pls find the attachement.

which i am using.

this is in .pptx format when i convert and save in that time it save properly in .ppt format

but the problem is reading the ppt for creating the thumbnails purpose the out of memory heap size error is occured.

But i am take the same .pptx file and manually save as .ppt in that time it is works fine means creating thumbnails images and all.

But through code wise it gives error

Hi Tahir

pls respond to my above request...............

As soon as possible bcause its need some urgent requierement.....

Thanks in Advance..................

Hi Vijay,

support for PPTX to PPT and vice versa conversion is completely
unavailable in Aspose.Slides for Java at the moment and an issue with ID
17175 has already been created in our issue tracking system to
provide this feature. We will share further information with you once
the feature support is available.

We are sorry for your inconvenience.