Her Excel Çalışma Sayfası İçin Bir PDF Sayfası Çizin Excel’den PDF’ye Dönüşüm ile Node.js ve C++

Contents
[ ]

Lütfen birden çok çalışsayfasına sahip bir Excel dosyasını PDF’ye dönüştüren aşağıdaki örnek kodu inceleyin.

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

// The path to the documents directory.
const dataDir = path.join(__dirname, "data");
// Initialize a new Workbook
// Open an Excel file
const workbook = new AsposeCells.Workbook(path.join(dataDir, "input.xlsx"));

// Implement one page per worksheet option
const pdfSaveOptions = new AsposeCells.PdfSaveOptions();
pdfSaveOptions.setOnePagePerSheet(true);

// Save the PDF file
workbook.save(path.join(dataDir, "OutputFile.out.pdf"), pdfSaveOptions);