Aspose Linux under the font can not find an error

Source: Internet
Author: User

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); This should be the font path .
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.