読み取り Numbers スプレッドシート Apple Inc. が Aspose.Cells を使用して開発
Contents
[
Hide
]
考えられる使用シナリオ
Numbers は Apple Inc. が開発したスプレッドシート アプリケーションです。Aspose.Cells は Numbers スプレッドシートを読み取ることができますが、書き込みはサポートしていません。 Numbers スプレッドシートのデータ、スタイル、数式を読み取ることができます。
読み取り Numbers スプレッドシート Apple Inc. が Aspose.Cells を使用して開発
次のサンプル コードは、サンプル Numbers スプレッドシートそしてそれをに変換します出力 PDF フォーマット.使用する必要があります**LoadOptions**クラスと指定**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); |