Skip to main content

๐Ÿ“Š PPT Module Guide

This page is currently only available in Chinese. Please switch to ็ฎ€ไฝ“ไธญๆ–‡ for the full content.

๐Ÿ“Š PPT Module Guide

The PPT module provides 3 core functions focused on format conversion and merging.

Core Scenariosโ€‹

PPT to PDFโ€‹

import office
office.ppt.ppt2pdf(
path='./product_intro.pptx',
output_path='./pdf_files/'
)

PPT to Imageโ€‹

# One image per slide
office.ppt.ppt2img(
input_path='./product_intro.pptx',
output_path='./images/',
merge=False
)

# Merge into a long image
office.ppt.ppt2img(
input_path='./product_intro.pptx',
output_path='./long_image.png',
merge=True
)

Merge Multiple PPTsโ€‹

office.ppt.merge4ppt(
input_path='./chapter_ppts/',
output_path='./full_version/',
output_name='full_product_intro.pptx'
)

Full API see PPT API Reference

AI ๅŠžๅ…ฌๆ•ˆ็އ่ฏพ
35 ่ฎฒ AI ่‡ชๅŠจๅŒ–ๅŠžๅ…ฌๅฎžๆˆ˜่ฏพ็”จ Python + AI ๅค„็† Excelใ€Wordใ€PDFใ€้‚ฎไปถ็ญ‰ๅŠžๅ…ฌๅœบๆ™ฏใ€‚
ๅŽปๅญฆไน