Nummertabellen, entwickelt von Apple Inc., mit Aspose.Cells for Node.js via C++

Mögliche Verwendungsszenarien

Numbers ist eine Tabellenkalkulationsanwendung, entwickelt von Apple Inc. Aspose.Cells kann Numbers-Tabellen lesen, aber das Schreiben in sie wird nicht unterstützt. Es kann Daten, Formatierungen und Formeln aus Numbers-Tabellen lesen.

Read Numbers Spreadsheet Developed by Apple Inc. using Aspose.Cells for Node.js via C++

Der folgende Beispielcode lädt die Beispiel Numbers Tabelle und konvertiert sie in Ausgabe PDF-Format. Sie müssen die LoadOptions-Klasse verwenden und LoadFormat.Numbers als Parameter im Konstruktor angeben, um sie erfolgreich zu laden. Laden Sie beide von den angegebenen Links herunter. Sie können den Code mit jeder Numbers-Tabelle ausprobieren. Bitte lesen Sie auch die Kommentare im Code für weitere Hilfe.

Beispielcode

const path = require("path");
const AsposeCells = require("aspose.cells.node");

// The path to the documents directory.
const dataDir = path.join(__dirname, "data");
const sourceFilePath = path.join(dataDir, "sampleNumbersByAppleInc.numbers");
const outputFilePath = path.join(dataDir, "outputNumbersByAppleInc.pdf");

// Specify load options, we want to load Numbers spreadsheet
const opts = new AsposeCells.LoadOptions(AsposeCells.LoadFormat.Numbers);

// Load the Numbers spreadsheet in workbook with above load options
const wb = new AsposeCells.Workbook(sourceFilePath, opts);

// Save the workbook to pdf format
wb.save(outputFilePath, AsposeCells.SaveFormat.Pdf);