Java.lang.AssertionError

Hi :

I am getting above mentioned when I try to convert a .PPT To PDF.

Library Used: aspose.slides-7.3.0.jar

Java Code:

import com.aspose.slides.License;
import com.aspose.slides.Presentation;
import com.aspose.slides.PresentationEx;

public class ConvertPPT
{
public static void main(String args[])
{
System.out.println("Inside PPTX");
PresentationEx pres = new PresentationEx("C:\\Program Files\\Java\\jdk1.6.0_45\\bin\\1111.ppt");
//PresentationEx pres = new PresentationEx("C:\\Program Files\\Java\\jdk1.6.0_45\\bin\\2222.pptx");
com.aspose.slides.PdfOptions opts = new com.aspose.slides.PdfOptions();
opts.setJpegQuality((byte)90);
opts.setSaveMetafilesAsPng(true);
opts.setTextCompression(com.aspose.slides.PdfTextCompression.Flate);
opts.setCompliance(com.aspose.slides.PdfCompliance.PdfA1b);
pres.save("C:\\Program Files\\Java\\jdk1.6.0_45\\bin\\123.pdf", com.aspose.slides.SaveFormat.Pdf,opts);

}
}

As the attachment is confidential , So I cannot attach it.

Kindly suggest me.

Hi Gaurav,


I have observed the sample code shared and it seems Ok. Can you please try using Aspose.Slides for Java 7.4.0 on your end and kindly share your feedback along with source presentation if the issue is still incurring on your end.

Many Thanks,