Convert Excel workbook to Ods,Sxc and Fods (OpenOffice / LibreOffice calc) via Node.js
About OpenDocument
The OpenDocument format (ODF) is a free and open file format for electronic office documents originally developed by Sun for the Open Office suite. OpenDocument Spreadsheet (ODS) is the file format for Excel documents. OpenDocument is currently an OASIS and ISO standard.
Convert Ods (OpenOffice / LibreOffice calc) to Excel
Aspose.Cells for Node.js via C++ supports loading Ods, Sxc and Fods which are supported by OpenOffice / LibreOffice Calc, and convert Ods, Sxc and Fods to Excel files.
const path = require("path");
const AsposeCells = require("aspose.cells.node");
// Load Excel workbook
const excelFilePath = path.join(__dirname, "book1.xlsx");
let workbook = new AsposeCells.Workbook(excelFilePath);
// Save as ods file
workbook.save("ods_out.ods");
// Save as sxc file
workbook.save("sxc_out.sxc");
// Save as fods file
workbook.save("fods_out.fods");
Convert Excel to Ods (OpenOffice / LibreOffice Calc)
Aspose.Cells for Node.js via C++ supports converting Excel files to Ods, Sxc and Fods files. The code example below shows how to convert the template to Ods, Sxc and Fods file.
const path = require("path");
const AsposeCells = require("aspose.cells.node");
// The path to the documents directory.
const dataDir = path.join(__dirname, "data");
const filePath1 = path.join(dataDir, "book1.xlsx");
// Load your source workbook
const workbook = new AsposeCells.Workbook(filePath1);
// Save as ods file
workbook.save("Out.ods");
// Save as sxc file
workbook.save("Out.sxc");
// Save as fods file
workbook.save("Out.fods");