Hello,
import com.aspose.slides.IPresentation;
import com.aspose.slides.Presentation;
import com.aspose.slides.SaveFormat;public
class Convert {
public static void main(String[] args) {
System.out.println("os.name=" + System.getProperty("os.name"));
System.out.println("os.version=" + System.getProperty("os.version"));
System.out.println("java.version=" + System.getProperty("java.version"));
IPresentation presentation = new Presentation("./slides.pptx");
presentation.save("./slides.pdf", SaveFormat.Pdf);
System.out.println("Done.");
}
}
Output:
os.name=SunOS
os.version=5.10
java.version=1.6.0_81
Exception in thread "main" java.lang.AssertionError: Cannot read a name from the name table in a font.
at com.aspose.slides.p6a2feef8.pbdb106a0.pa2137a2a.a.do(Unknown Source)
at com.aspose.slides.pa2137a2a.p9f36407e.ad.if(Unknown Source)
at com.aspose.slides.pa2137a2a.p9f36407e.ad.try(Unknown Source)
at com.aspose.slides.pa2137a2a.p9f36407e.ad.do(Unknown Source)
at com.aspose.slides.pa2137a2a.p9f36407e.l.do(Unknown Source)
at com.aspose.slides.pa2137a2a.p9f36407e.l.(Unknown Source)
at com.aspose.slides.pa2137a2a.p9f36407e.i.case(Unknown Source)
at com.aspose.slides.pa2137a2a.p9f36407e.i.try(Unknown Source)
at com.aspose.slides.pa2137a2a.p9f36407e.i.do(Unknown Source)
at com.aspose.slides.tt.do(Unknown Source)
at com.aspose.slides.tr.(Unknown Source)
at com.aspose.slides.bhj.for(Unknown Source)
at com.aspose.slides.bhj.while(Unknown Source)
at com.aspose.slides.bge.do(Unknown Source)
at com.aspose.slides.bge.do(Unknown Source)
at com.aspose.slides.bge.do(Unknown Source)
at com.aspose.slides.bge.(Unknown Source)
at com.aspose.slides.TextFrame.do(Unknown Source)
at com.aspose.slides.AutoShape.do(Unknown Source)
at com.aspose.slides.AutoShape.do(Unknown Source)
at com.aspose.slides.GroupShape.do(Unknown Source)
at com.aspose.slides.Slide.do(Unknown Source)
at com.aspose.slides.Slide.do(Unknown Source)
at com.aspose.slides.asa.if(Unknown Source)
at com.aspose.slides.Presentation.do(Unknown Source)
at com.aspose.slides.Presentation.save(Unknown Source)
at Convert.main(Convert.java:12)
I get the same results with java versions 1.7.0_55 and 1.6.0_75. slides.pptx is attached.
Regards,
Henrik Arvidaon