读取由Apple Inc.开发的Numbers电子表格
Contents
[
Hide
]
可能的使用场景
Numbers是由苹果公司开发的电子表格应用程序。Aspose.Cells for Python via .NET 可以读取Numbers电子表格,但不支持写入。它可以读取Numbers电子表格的数据、样式和公式。
使用 Aspose.Cells Python via .NET 阅读由 Apple Inc. 开发的 Numbers 电子表格
以下示例代码加载了Sample Numbers Spreadsheet并将其转换为Output PDF Format。您必须使用 LoadOptions 类并在其构造函数中指定 LoadFormat.NUMBERS 作为参数才能成功加载。请从给定的链接下载它们。您可以尝试使用任何Numbers电子表格。还请阅读代码的注释以获取更多帮助。
示例代码
This file contains hidden or 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
from aspose.cells import LoadFormat, LoadOptions, SaveFormat, Workbook | |
# For complete examples and data files, please go to https:# github.com/aspose-cells/Aspose.Cells-for-.NET | |
# Specify load options, we want to load Numbers spreadsheet | |
opts = LoadOptions(LoadFormat.NUMBERS) | |
# Load the Numbers spreadsheet in workbook with above load options | |
wb = Workbook(sourceDir + "sampleNumbersByAppleInc.numbers", opts) | |
# Save the workbook to pdf format | |
wb.save(outputDir + "outputNumbersByAppleInc.pdf", SaveFormat.PDF) |