Exportera dokumentstruktur vid konvertering till PDF

Contents
[ ]

PDF-logiska strukturfunktioner tillhandahåller en mekanism för att införliva information om dokumentets innehållsstruktur i en PDF-fil. Aspose.Cells för Python via .NET bevarar information om strukturen från ett Microsoft Excel-dokument, såsom cell, rad, tabell, arbetsblad, bild, form, sidhuvud/fot, osv.

Med alternativ PdfSaveOptions.export_document_structure kan du spara till en taggad PDF med exporterad dokumentstruktur.

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)