Power Point





pip install


인스톨

pip install python-pptx


페이지 만들기

from pptx import Presentation
prs = Presentation()
layout = prs.slide_layouts[0]
slide = prs.slides.add_slide(layout)
title = slide.shapes[0]
subtitle = slide.shapes[1]
title.text = "zip 에서 ppt 만들기!"
subtitle.text = "django server 에서"

output = io.BytesIO()
prs.save(output)
output.seek(0)
new_zip.writestr( 'zi.pptx', output.getvalue() )