• Aspose Linux下字体找不到报错


    http://www.aspose.com/docs/display/cellsnet/Smart+Markers

    http://www.aspose.com/docs/display/cellsjava/Smart+Markers

    http://www.aspose.com/docs/display/cellsjava/Smart+Markers

    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

  • 相关阅读:
    使用Silverlight 实现工作流流程定义
    中国国内航线信息的可视化
    笨办法学R编程(5)
    笨办法学R编程(4)
    笨办法学R编程(3)
    香山杯部分WP
    PWNABLE 3x17
    PWNABLE dubblesort
    PWNABLE applestore
    pyc文件修复出题经历
  • 原文地址:https://www.cnblogs.com/daxin/p/3857922.html
Copyright © 2020-2023  润新知