Skip to main content

📊 PPT API Reference

This page is currently only available in Chinese. Please switch to 简体中文 for the full content.

📊 PPT API Reference

Sub-package: poppt | Install: pip install poppt Import: import office or import poppt

Function Overview

FunctionDescription
ppt2pdf(path, output_path='./')PPT to PDF
ppt2img(input_path, output_path='./', merge=False)PPT to image
merge4ppt(input_path, output_path='./', output_name='merge4ppt.pptx')Merge PPT

Examples

import office

office.ppt.ppt2pdf(path='presentation.pptx', output_path='./output/')
office.ppt.ppt2img(input_path='presentation.pptx', output_path='./images/', merge=True)
office.ppt.merge4ppt(input_path='./ppt_files/', output_name='combined.pptx')
AI 办公效率课
35 讲 AI 自动化办公实战课用 Python + AI 处理 Excel、Word、PDF、邮件等办公场景。
去学习