Aspose Linux下字体找不到报错
http://www.aspose.com/community/forums/thread/402193.aspx
http://www.aspose.com/community/forums/thread/362576/aspose-and-fonts-on-linux.cannot-find-font.aspx
Hi,
Thanks for your posting and using Aspose.Cells for Java.
Please try setting java.awt.headless=true before running your code and see if it gets crashed or not.
Please note the red line below.
Java
CellsHelper.setFontDir(fontDir); //这里应该是字体路径
Workbook book = new Workbook("2.xls");
Worksheet sheet = book.getWorksheets().get(0);
PageSetup pageSetup = sheet.getPageSetup();
pageSetup.setOrder(PrintOrderType.OVER_THEN_DOWN);
book.save("2.pdf");
Many Thanks and Kind Regards,
Shakeel Faiz
Support Developer
Aspose Support Team
Aspose - Your File Format APIs
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。