Xem và chỉnh sửa siêu dữ liệu PPS 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 PPS 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 PPS. 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 PPS.

Cập nhật thuộc tính tích hợp của PPS – Python

with slides.Presentation("presentation.pps") 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.pps", slides.export.SaveFormat.PPS)

Thêm và xóa thuộc tính tùy chỉnh của PPS – Python

with slides.Presentation("presentation.pps") 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.pps", slides.export.SaveFormat.PPS)

Cách chỉnh sửa siêu dữ liệu PPS bằng Python

Làm theo các bước sau để chỉnh sửa siêu dữ liệu trong tệp PPS.

  1. Mở tệp PPS bằng Presentation.
  2. Truy cập đối tượng IDocumentProperties qua Presentation.document_properties.
  3. Cập nhật thuộc tính tích hợp hoặc dùng set_custom_property_value và remove_custom_property cho thuộc tính tùy chỉnh.
  4. Lưu bản trình bày bằng Presentation.save và SaveFormat.PPS.

Được xây dựng bằng Aspose.Slides

Xem và chỉnh sửa siêu dữ liệu PPS 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 PPS 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 PPS.
  • 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ợ.