如何使用python-pptx增加python生成的powerpoint演示文稿的幻灯片大小 [英] how to increase the slide size a python generated powerpoint presentation using python-pptx
本文介绍了如何使用python-pptx增加python生成的powerpoint演示文稿的幻灯片大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试将多个图表放入 python 生成的幻灯片中,但我需要幻灯片的大小更宽.我查看了提供的可用文档,但并不多.
Am trying to fit multiple charts into a python generated slide but I need the size of the slide to be wider. I looked through the available documentation provided which aren't much.
推荐答案
我能够通过调整 prs 的宽度和高度大小来解决这个问题
I was able to resolve this by adjusting the width and height size of the prs
prs = Presentation()
prs.slide_width = 11887200
prs.slide_height = 6686550
这篇关于如何使用python-pptx增加python生成的powerpoint演示文稿的幻灯片大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文