Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
const path = require("path");
const AsposeCells = require("aspose.cells.node");
// The path to the documents directory.
const dataDir = path.join(__dirname, "data");
try {
// Get the template excel file path.
const designerFile = path.join(dataDir, "SampleInput.xls");
// Specify the pdf file path.
const pdfFile = path.join(dataDir, "Output.out.pdf");
// Open the template excel file
const wb = new AsposeCells.Workbook(designerFile);
// Save the pdf file.
wb.save(pdfFile, AsposeCells.SaveFormat.Pdf);
} catch (e) {
console.log(e.message);
}
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.