Hi there,
I just upgraded to aspose slides version 6.7.1 (from 2.9) and I’m running into a serious problem with the easiest of all samples.
I’m just trying to create a presentation and save it, but I always get the following error message:
"java.lang.AssertionError: Cannot read a name from the name table in a font."
I didn’t do anything with the new FontsLoader yet, my source is just this:
final PresentationEx pres = new PresentationEx();
pres.save(“C:\_temp\test.pptx”);
I also tried with different save and write functions, but it’s always the same.
Do I need any additional library or specific java version to get it to work?
Thanks in advance,
Christiane
Hi Christiane,
Hi!
I tried the same with version 6.9.0 and still get the same error.
I’m on a Windows 7 (64bit) machine, and using Java 1.6 for the project.
Are there any Eclipse settings that might be responsible for that?
We really need to fix this soon, otherwise we won’t be able to do a version upgrade for our project this year.
With regards,
Christiane Eckl
Hi Christiane Eckl,
Hi!
After testing the sample on different windows 7 (x64) machines, I discovered that it was working everywhere but on my PC.
Finally I found out that the error message was to be accepted at face value - I had a corrupt font file installed that Aspose could not handle. Apparently Aspose scans through all the windows fonts when creating a new Presentation which resulted in the error message above. Deleting the font did the trick.
So my issue is resolved and I can go on with my tests.
Thanks,
Christiane Eckl
Hi Christiane Eckl,