📊 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 popptImport:import officeorimport poppt
Function Overview
| Function | Description |
|---|---|
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')