Làm việc với Quản lý trình bày -- Aspose.Slides FOSS cho Python
Aspose.Slides FOSS for Python provides classes for working with working with presentation management.
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-fossSử dụng cơ bản
import aspose.slides_foss as slides
from aspose.slides_foss.export import SaveFormat
with slides.Presentation() as prs:
# Add an additional blank slide at the end
prs.slides.add_empty_slide(prs.layout_slides[0])
print(f"Total slides: {len(prs.slides)}")
prs.save("multi-slide.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
| Class | Description |
|---|---|
Presentation | Xem các tài liệu tham khảo |
Để biết chi tiết, xem các API tham chiếu.