Aspose.slides : conversion from ppt to pdf

Hi,


Am trying to convert ppt to pdf by using aspose.slides-2.6.0.jar
Getting exception as "java.lang.NoClassDefFoundError: com.aspose.slides.Presentation"

for converting pptx to pdf also am getting exception like "java.lang.NoClassDefFoundError: com.aspose.slides.pptx.PresentationEx"

Even i didn’t find anything in forum.

Can you help me to proceed further.

Regards,
Kumari.

Hi Kumari,

I have observed that you are using fairly old version of Aspose.Slides for Java. I suggest you to please try using Aspose.Slides for Java 15.3.0 on your end. If there is still an issue then please share the sample application with us along with Java, environment and operating system details. I will investigate the issue further on my end to help you out.

Many Thanks,

Hi Mudassir,


By using Aspose.Slides for Java i can able to convert PPT to PDF successfully. But by using Aspose.Slides for Android is not working.

Can you help me for converting PPT to PDF in Android. If i use Aspose.Slides for Java in Android am getting Exceptions.

Regards,
Kumari.

Hi Kumari,

I have observed your requirements and like to share that at present the rendering support is unavailable in Aspose.Slides for Android. I suggest you to please try using Aspose.Slides for Cloud that provides support for Android platform in cloud environment. Please visit the following links for your kind reference in this regard. We also support the SDK for Android that you can readily use on your end as well.

Create, Merge, Split & Convert PowerPoint Slides via cURL
Aspose.Slides Cloud

Many Thanks,

Hi Mudassir,


Aspose.Slides for Cloud is for cloud environment right. But I want to use as inbuilt in my android application. Is there any other way to use Aspose.slides for Android

Thanks for your reply.

Regards,
Kumari.

Hi Kumari,

I regret to share that there is no other option available in this regard as Aspose.Slides for Android currently does not have rendering capabilities. The only option is to try using Cloud API if that suits your needs.

Many Thanks,

Hi,

I want to convert ppt and pptx to pdf and i try to convert but no result

I set in my code android a method convertSlidesToPdf and i add aspose.slides-1.1.0.jar but no result
this the method:
/////////////////////////////////////////////////////////
public static boolean convertSlidesToPdf(String filePath, String outputPath, boolean isPptx) {
try {
if (!isPptx) {
Presentation presentation = new Presentation(filePath);
presentation.saveToPdf(outputPath);
} else {
PresentationEx presentationEx = new PresentationEx(filePath);
presentationEx.save(outputPath, com.aspose.slides.SaveFormat.Pdf);
}
DebugUtil.debug(DebugUtil.LOG_TYPE.INFO, Tags.CONVERT_TO_PDF, “Converting -” + filePath + "- file to PDF finished… Generated PDF saved in: " + outputPath, null);
return true;
} catch (Exception e) {
DebugUtil.debug(DebugUtil.LOG_TYPE.ERROR, Tags.CONVERT_TO_PDF, “convertSlidesToPdf exception:”, e);
return false;
}
}
//////////////////////////////////////
and this is the error

//////////////////////////////
java.lang.NoClassDefFoundError: java.awt.GraphicsEnvironment
at com.aspose.slides.pf4dd765c.pbdb106a0.pa2137a2a.y.do(Unknown Source)
at com.aspose.slides.pf4dd765c.pbdb106a0.pa2137a2a.y.for(Unknown Source)
at com.aspose.slides.pf4dd765c.pbdb106a0.pa2137a2a.y.(Unknown Source)
at com.aspose.slides.pf4dd765c.pbdb106a0.pa2137a2a.ap.(Unknown Source)
at com.aspose.slides.pf4dd765c.pbdb106a0.pa2137a2a.h.const(Unknown Source)
at com.aspose.slides.ColorFormatEx.(Unknown Source)
at com.aspose.slides.ParagraphFormatEx.(Unknown Source)
at com.aspose.slides.PresentationEx.(Unknown Source)


////////////////////////////////////////

Hi Montassar,


Thanks for inquiring Aspose.Slides.

I have observed the issue shared by you and like to share that Aspose.Slides for Android does not have the support of rendering to PDF or generating slide thumbnails at the moment. Please refer to my previous post for possible solution in this regard.

Many Thanks,