Xem và chỉnh sửa siêu dữ liệu POT bằng Python
Xây dựng ứng dụng Python đọc và sửa đổi thuộc tính tích hợp và tùy chỉnh của bản trình bày bằng Aspose.Slides.
Xem và sửa đổi siêu dữ liệu POT bằng Python
Aspose.Slides for Python via .NET
cho phép bạn đọc và cập nhật siêu dữ liệu tích hợp, đồng thời thêm, cập nhật hoặc xóa thuộc tính tài liệu tùy chỉnh trong bản trình bày POT. Truy cập đối tượng
IDocumentProperties
qua Presentation.document_properties, sửa đổi rồi lưu bản trình bày ở định dạng POT.
Cập nhật thuộc tính tích hợp của POT – Python
with slides.Presentation("presentation.pot") as presentation:
document_properties = presentation.document_properties
document_properties.author = "Aspose.Slides for Python"
document_properties.title = "Quarterly Review"
document_properties.subject = "Presentation Metadata"
document_properties.comments = "Built-in properties updated with Aspose.Slides."
document_properties.manager = "Project Manager"
presentation.save("presentation_with_updated_metadata.pot", slides.export.SaveFormat.POT)Thêm và xóa thuộc tính tùy chỉnh của POT – Python
with slides.Presentation("presentation.pot") as presentation:
document_properties = presentation.document_properties
document_properties.set_custom_property_value("Department", "Engineering")
document_properties.set_custom_property_value("Review Count", 3)
document_properties.set_custom_property_value("Obsolete Status", "Draft")
document_properties.remove_custom_property("Obsolete Status")
presentation.save("presentation_with_custom_metadata.pot", slides.export.SaveFormat.POT)Cách chỉnh sửa siêu dữ liệu POT bằng Python
Làm theo các bước sau để chỉnh sửa siêu dữ liệu trong tệp POT.
- Mở tệp POT bằng
Presentation. - Truy cập đối tượng
IDocumentPropertiesquaPresentation.document_properties. - Cập nhật thuộc tính tích hợp hoặc dùng
set_custom_property_valuevàremove_custom_propertycho thuộc tính tùy chỉnh. - Lưu bản trình bày bằng
Presentation.savevàSaveFormat.POT.
Được xây dựng bằng Aspose.Slides
Xem và chỉnh sửa siêu dữ liệu POT trực tuyến
Ứng dụng Aspose.Slides Metadata miễn phí được xây dựng bằng Aspose.Slides for Python via .NET, cùng API với đoạn mã ở trên. Hãy mở ứng dụng và xem API có thể làm gì với các tệp POT của riêng bạn.
- Chạy trong trình duyệt, không cần cài đặt gì.
- Xem Aspose.Slides đọc và ghi thuộc tính như thế nào trước khi viết mã.
- Xem và chỉnh sửa thuộc tính tích hợp và tùy chỉnh của tệp POT.
- Lưu và tải xuống tệp đã cập nhật.
Các định dạng siêu dữ liệu khác được hỗ trợ
Với Python, bạn cũng có thể quản lý siêu dữ liệu của các định dạng bản trình bày khác được hỗ trợ.