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