Hi,
Hi,
Thanks for your posting and using Aspose.Cells for Java.
Please set the following property true to get rid of this error.
System.setProperty(“java.awt.headless”, “true”);
We think, if you will install microsoft fonts on your Linux machine, your issue will be resolved. Please try it and let us know your feedback.
We have looked into this issue and tested it on Linux Ubuntu 12.04.1 LTS.
Please install Microsoft TrueType Core Fonts. I have attached the core fonts screenshot for your help.
Please use the following code to generate a pdf from your source file for your reference.
Java
System.setProperty(“java.awt.headless”, “true”);
String filePath = “/media/OrderTest.xls”;
// CellsHelper.setFontDir("/usr/share/fonts");
Workbook workbook = new Workbook(filePath);
workbook.save(filePath + “.out.pdf”);
Microsoft TrueType Core Fonts:
Settings java.awt.headless to true helped, thank you.
Hi,
Thanks for your feedback.
We are glad to know that setting the property to true has resolved your issue.
If you face any other issue, please feel free to post on our forums, we will be glad to help you further.
Thank you once again.
I am facing the same issue but unable to fix it on window with this code
Hi,