Free Support Forum - aspose.com

Clone of slides not possible due to java.lang.AssertionError: Cannot read a name from the name table in a font

Slides 6.7.1 for java with java7 on ubuntu linux 12.10:


With 6.7.1it is no longer possible to extract slides from a pptx. Every presentation I used for testing resulted in the error shown below. See attached test file and test case here.

Is there a solution and/or workaround? Splitting would be the core use case.

java.lang.AssertionError: Cannot read a name from the name table in a font.
at com.aspose.slides.b.a.b.a.do(Unknown Source)
at com.aspose.slides.a.n.do(Unknown Source)
at com.aspose.slides.a.n.do(Unknown Source)
at com.aspose.slides.a.n.do(Unknown Source)
at com.aspose.slides.a.l.C.if(Unknown Source)
at com.aspose.slides.a.l.C.try(Unknown Source)
at com.aspose.slides.a.l.C.do(Unknown Source)
at com.aspose.slides.a.l.k.do(Unknown Source)
at com.aspose.slides.a.l.k.(Unknown Source)
at com.aspose.slides.a.l.h.case(Unknown Source)
at com.aspose.slides.a.l.h.try(Unknown Source)
at com.aspose.slides.a.l.h.do(Unknown Source)
at com.aspose.slides.a.l.j.do(Unknown Source)
at com.aspose.slides.a.l.j.do(Unknown Source)
at com.aspose.slides.a.l.j.do(Unknown Source)
at com.aspose.slides.ol.(Unknown Source)
at com.aspose.slides.Kw.int(Unknown Source)
at com.aspose.slides.Kw.final(Unknown Source)
at com.aspose.slides.cH.do(Unknown Source)
at com.aspose.slides.SlideEx.do(Unknown Source)
at com.aspose.slides.SlideEx.do(Unknown Source)
at com.aspose.slides.PresentationEx.char(Unknown Source)
at com.aspose.slides.PresentationEx.do(Unknown Source)
at com.aspose.slides.PresentationEx.do(Unknown Source)
at com.aspose.slides.PresentationEx.do(Unknown Source)
at com.aspose.slides.PresentationEx.write(Unknown Source)
at com.aspose.slides.PresentationEx.write(Unknown Source)
at com.aspose.testcases.slides.SplitPresentation.main(SplitPresentation.java:23)


package com.aspose.testcases.slides;

import java.io.InputStream;

import com.aspose.slides.*;

public class SplitPresentation {
public static void main(String[] args) {

InputStream inputStream = SplitPresentation.class
.getResourceAsStream("/META-INF/test1.pptx");

PresentationEx srcPres = new PresentationEx(inputStream);
SlideExCollection srcSlides = srcPres.getSlides();
int max = srcSlides.getCount();
System.out.println(“slides=” + max);
for (int i = 0; i < max; i++) {
try {
System.out.println("extract slide at: " + i);
PresentationEx destPres = new PresentationEx();
SlideExCollection slds = destPres.getSlides();
slds.addClone(srcSlides.get_Item(i));
destPres.write(“slide-” + i + “.pptx”);
System.err.println("written slide " + i);
} catch (Throwable ex) {
System.err.println(“error” + ex);
ex.printStackTrace();
}
}

}
}

Hi Lothar,


Thanks for inquiring Aspose.Slides.

I have worked with the presentation file shared by you and have been able to reproduce the issue specified in Ubuntu Environment. An issue with ID SLIDESJAVA-33636 has been created in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be automatically notified once the issue will be resolved.

We are sorry for your inconvenience,

Thank you for your sustaining support.


That is - in windows it is working fine?

Hi Lothar,


Yes, in Widows 7 x64, I have not been able to observe any issue. For your kind reference, I have attached the generated presentation.

Many Thanks,

Thanks,


The slides split worked on linux with slides version 2.9.6 afair though.

Hi Lothar,


I like to share that Aspose.Slides for Java 3.0.0 and onward versions are no more dependent on Aspose.Slides for Java 2.9.x series. These are two different products in terms of features and implementation. Aspose.Slides for Java 3.0.0 and onward versions are developed by auto porting features from Aspose.Slides for .NET.

Many Thanks,

Hi,


has there been any luck in resolving this - maybe OS related - issue?

Thanks,
lothar

Hi Lothar,


I have verified from our issue tracking system and regret to share that issue has not yet been resolved. However, it has been assigned to concerned developer and as soon as there will be any updates shared, I will be glad to pass them on to you.

Many Thanks,

The issues you have found earlier (filed as SLIDESJAVA-33636) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.