Làm việc với nội dung trình bày -- Aspose.Slides FOSS for Python

Aspose.Slides FOSS for Python provides classes for working with working with presentation content.


Tổng quan

Các lớp học chính liên quan là:

  • Presentation

bắt đầu

Cài đặt Aspose.Slides FOSS cho Python:

pip install aspose-slides-foss

Sử dụng cơ bản

import aspose.slides_foss as slides
from aspose.slides_foss import ShapeType
from aspose.slides_foss.export import SaveFormat

with slides.Presentation() as prs:
    slide = prs.slides[0]
    shape = slide.shapes.add_auto_shape(ShapeType.RECTANGLE, 50, 50, 300, 100)
    shape.add_text_frame("Aspose.Slides FOSS")
    prs.save("content.pptx", SaveFormat.PPTX)

Mẹo và Thực hành Tốt nhất

  • Luôn loại bỏ các tài liệu đối tượng sau khi sử dụng
  • Chăm sóc các ngoại lệ I/O khi đọc hoặc viết tệp
  • Kiểm tra The API tham chiếu Đối với các chữ ký mới nhất

Tóm tắt Tham chiếu API

ClassDescription
PresentationXem các tài liệu tham khảo

Để biết chi tiết, xem các API tham chiếu.

Xem thêm

 Tiếng Việt