Convert XLS File with Images or Charts to PDF with Node.js via C++

Contents
[ ]

Sample Code

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);
}