PDF への変換時にドキュメント構造をエクスポート
Contents
[
Hide
]
PDFの論理構造機能は、PDFファイルに文書コンテンツの構造に関する情報を組み込むためのメカニズムを提供します。 Aspose.Cells for Python via .NET は、Microsoft Excel文書の構造に関する情報(セル、行、テーブル、ワークシート、画像、図形、ヘッダー/フッターなど)を保持します。
[PdfSaveOptions.export_document_structure](https://reference.aspose.com/cells/python-net/aspose.cells/pdfsaveoptions/export_document_structure/)オプションを使用すると、文書構造がエクスポートされたタグ付きPDFに保存できます。
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) |