阅读 Apple Inc. 使用 Aspose.Cells 开发的 Numbers 电子表格
Contents
[
Hide
]
可能的使用场景
Numbers是苹果公司开发的电子表格应用程序。Aspose.Cells可以读取Numbers电子表格,但不支持写入。它可以读取 Numbers 电子表格的数据、样式和公式。
阅读 Apple Inc. 使用 Aspose.Cells 开发的 Numbers 电子表格
下面的示例代码加载样本 Numbers 电子表格并将其转换为输出 PDF 格式.你将不得不使用**加载选项**分类并指定**LoadFormat.NUMBERS**作为其构造函数中的参数以成功加载它。请从给定的链接下载它们。您可以使用任何 Numbers 电子表格试用该代码。另请阅读代码的注释以获得更多帮助。
示例代码
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Java | |
// Specify load options, we want to load Numbers spreadsheet. | |
LoadOptions opts = new LoadOptions(LoadFormat.NUMBERS); | |
// Load the Numbers spreadsheet in workbook with above load options. | |
Workbook wb = new Workbook(srcDir + "sampleNumbersByAppleInc.numbers", opts); | |
// Save the workbook to pdf format | |
wb.save(outDir + "outputNumbersByAppleInc.pdf", SaveFormat.PDF); |