Export Document Structure While Converting to PDF

Contents
[ ]

PDF logical structure facilities provide a mechanism for incorporating information, regarding the document content structure, into a PDF file. Aspose.Cells for Python via .NET preserves information about the structure from a Microsoft Excel document, such as cell, row, table, worksheet, image, shape, header/footer, etc.

With option [PdfSaveOptions.export_document_structure]https://reference.aspose.com/cells/python-net/aspose.cells/pdfsaveoptions/export_document_structure/), you can save to a tagged PDF with document structure exported.

from aspose.cells import PdfSaveOptions, Workbook
# 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.
wb = Workbook("document-structure-example.xlsx")
# Set to export document structure.
pdfSaveOptions = PdfSaveOptions()
pdfSaveOptions.export_document_structure = True
# Save the pdf file with PdfSaveOptions
wb.save("output.pdf", pdfSaveOptions)