Exportera dokumentstruktur vid konvertering till PDF med Node.js via C++

Contents
[ ]

PDF:s logiska strukturfunktioner ger en mekanism för att inkludera information om dokumentets innehållsstruktur i en PDF-fil. Aspose.Cells for Node.js via C++ bevarar information om strukturen från ett Microsoft Excel-dokument, som cell, rad, tabell, arbetsblad, bild, form, sidhuvud/fotdel, etc.

Med alternativet PdfSaveOptions.getExportDocumentStructure() kan du spara till en märkt PDF med exporterad dokumentstruktur.

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

// The path to the documents directory.
const dataDir = path.join(__dirname, "data");
const filePath = path.join(dataDir, "document-structure-example.xlsx");
// Open the excel file with image, shape, chart, etc.
const wb = new AsposeCells.Workbook(filePath);

// Set to export document structure.
const pdfSaveOptions = new AsposeCells.PdfSaveOptions();
pdfSaveOptions.setExportDocumentStructure(true);

// Save the pdf file with PdfSaveOptions
wb.save("output.pdf", pdfSaveOptions);