تصدير هيكل الوثيقة أثناء التحويل إلى PDF
Contents
[
Hide
]
توفر المرافق الهيكلية للـ PDF آليةً لدمج معلومات حول هيكل محتوى الوثيقة في ملف PDF. يحتفظ Aspose.Cells for Python via .NET بمعلومات حول الهيكل من وثيقة Microsoft Excel، مثل الخلية، الصف، الجدول، ورقة العمل، الصورة، الشكل، رأس/تذييل الصفحة، إلخ.
مع الخيار 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) |