تصدير هيكل الوثيقة أثناء التحويل إلى 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); |