Export Document Structure While Converting to PDF
Contents
[
Hide
]
PDF logical structure facilities provide a mechanism for incorporating information, regarding the document content structure, into a PDF file. Aspose.Cells preserves information about the structure from a Microsoft Excel document, such as cell, row, table, worksheet, image, shape, header/footer, etc.
With option PdfSaveOptions.ExportDocumentStructure, you can save to a tagged PDF with document structure exported.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET | |
// Open the excel file with image, shape, chart, etc. | |
Workbook wb = new Workbook("document-structure-example.xlsx"); | |
// Set to export document structure. | |
PdfSaveOptions pdfSaveOptions = new PdfSaveOptions(); | |
pdfSaveOptions.ExportDocumentStructure= true; | |
// Save the pdf file with PdfSaveOptions | |
wb.Save("output.pdf", pdfSaveOptions); |