Aspose Linux下字体找不到报错

时间:2014-07-22 00:35:05   收藏:0   阅读:1110

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

System.setProperty("java.awt.headless", "true");
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

Aspose Linux下字体找不到报错,布布扣,bubuko.com

原文:http://www.cnblogs.com/daxin/p/3857922.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!