Can't save as PDF- Solaris- v14.6.1

Hello,


I have problems creating PDFs on SunOS/Solaris machines. This works well with the 8.7 version of slides, but when running the following program with the 14.6.1 version of the jar it fails. Here is an example that highlights the issue:

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

Hi Henrik,

Thank you for sharing the details.

I tested the issue on my windows test environment and the file converts properly to PDF. We will further check the issue over a Solaris Environment and will get back to you with results.

Thanks & Regards,

Hello,


We are still experience this issues with Slides version 14.8.0.

Whats the statues on this issue? Do we need to start case through our Enterprise Support Subscription?

Regards,
Henrik Arvidson

Hi Henrik,

Thank you for the feedback and sorry for the delay.

I am setting up Solaris environment at my end for testing your reported issue and will share the results with you as soon as I am done with testing.

Thanks & Regards,

Hi Henrik Arvidaon,

I have observed the presentation file shared by you and it seems to be a very simple one and you have also shared that its working with legacy Aspose.Slides for Java 8.7.0 on your end. Can you please share the complete path location of Arial font installed on your machine so that we may start investigating the things on our end.

Secondly, I suggest you to please try the following sample code on your end by using Aspose.Slides for Java 14.9.0 in new sample application built from scratch. I have also attached the Arial font and calling the same font externally in the following sample code.

FontsLoader.loadExternalFonts(new String[] {“ArialFont”}); //Complete Font directory path location where font is copied

Presentation presentation = new Presentation(“slides.pptx”);
presentation.save(“slides.pdf”, SaveFormat.Pdf);

FontsLoader.clearCache();

PS: Please set the complete font directory path in loadExternalFonts method above where you extract the attached font.


Many Thanks,

Hi and thanks for getting back to me on this one.

I have extracted the files from the Arial.rar file into a directory called /home/konhear/java/fonts

I changed the test program to:
import com.aspose.slides.IPresentation;
import com.aspose.slides.Presentation;
import com.aspose.slides.SaveFormat;
import com.aspose.slides.FontsLoader;

public class Convert {
public static void main(String[] args) {
System.out.println("11os.name=" + System.getProperty("os.name"));
System.out.println("os.version=" + System.getProperty("os.version"));
System.out.println("java.version=" + System.getProperty("java.version"));

FontsLoader.loadExternalFonts(new String[] {"/home/konhear/java/fonts"});

Presentation presentation = new Presentation("slides.pptx");
presentation.save("slides.pdf", SaveFormat.Pdf);

FontsLoader.clearCache();

System.out.println("Done.");
}
}


compiled and run the test:
bash-3.2$ javac -cp aspose.slides-14.9.0.jar Convert.java
bash-3.2$ java -cp aspose.slides-14.9.0.jar:. Convert
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.pa5e0ff62.pbdb106a0.pa2137a2a.a.do(Unknown Source)
at com.aspose.slides.p6a2feef8.p9f36407e.ad.if(Unknown Source)
at com.aspose.slides.p6a2feef8.p9f36407e.ad.try(Unknown Source)
at com.aspose.slides.p6a2feef8.p9f36407e.ad.do(Unknown Source)
at com.aspose.slides.p6a2feef8.p9f36407e.l.do(Unknown Source)
at com.aspose.slides.p6a2feef8.p9f36407e.l.(Unknown Source)
at com.aspose.slides.p6a2feef8.p9f36407e.i.case(Unknown Source)
at com.aspose.slides.p6a2feef8.p9f36407e.i.try(Unknown Source)
at com.aspose.slides.p6a2feef8.p9f36407e.i.do(Unknown Source)
at com.aspose.slides.uo.do(Unknown Source)
at com.aspose.slides.uf.(Unknown Source)
at com.aspose.slides.uf.do(Unknown Source)
at com.aspose.slides.bje.int(Unknown Source)
at com.aspose.slides.bje.static(Unknown Source)
at com.aspose.slides.bhz.do(Unknown Source)
at com.aspose.slides.bhz.do(Unknown Source)
at com.aspose.slides.bhz.do(Unknown Source)
at com.aspose.slides.bhz.(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.asz.do(Unknown Source)
at com.aspose.slides.asz.if(Unknown Source)
at com.aspose.slides.Presentation.do(Unknown Source)
at com.aspose.slides.Presentation.save(Unknown Source)
at Convert.main(Convert.java:15)

Unfortunately I still experience the same problem.

Regards,
Henrik Arvidson

Hi Henrik Arvidson,

Thank you for performing investigation on your end. We have also been able to reproduce eh issue in Solaris environment. An issue with ID SLIDESJAVA-34641 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,

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


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.