Esportare la Struttura del Documento Durante la Conversione in PDF
Contents
[
Hide
]
Le strutture logiche del PDF forniscono un meccanismo per incorporare informazioni sulla struttura del contenuto del documento in un file PDF. Aspose.Cells per Python via .NET preserva le informazioni sulla struttura da un documento di Microsoft Excel, come celle, righe, tabelle, fogli di lavoro, immagini, forme, intestazioni/piedi di pagina, ecc.
Con l’opzione PdfSaveOptions.export_document_structure, è possibile salvare in un PDF taggato con la struttura del documento esportata.
This file contains hidden or 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
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) |