Hi,
I have to convert PPT slides into .svg formate or any other image formate.
For that i’m creating new project and add “aspose.slides-1.1.0.jar” in lib folder.
And writing the following lines in OnCreate().
File file, dataDir;So,for that i’m adding following code into the ‘build.gradle’,
dataDir = new File(String.valueOf(Environment.getExternalStorageDirectory()));
String src = dataDir + “/TestPPT.pptx”;
try {
//Opening the presentation file by passing the file path to the constructor of Presentation class
PresentationEx presentationEx = new PresentationEx(src);
//Access the first slide
SlideEx sld = presentationEx.getSlides().get_Item(0);
System.out.println(“Total slides:”+presentationEx.getSlides().getCount());
}
catch (Exception e)
{
System.out.println(“Error”+e);
}
When i run this code then it will gives me following error:
" Uncaught translation error: java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: Java heap space
Uncaught translation error: java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: Java heap space
2 errors; aborting
Error:Execution failed for task ‘:app:transformClassesWithDexForDebug’.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process ‘command ‘/Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home/bin/java’’ finished with non-zero exit value 1"
dexOptions {I’m using Android studio as IDE.
javaMaxHeapSize “4g”
}
then it will build successfully.But,when i debug that code
the debugger doesn’t do anything(stop) when it comes this line:
PresentationEx presentationEx = new PresentationEx(src);
Can you please tell me what is the actual problem for this.
Thank you.