반응형
python-pptx 라이브러리 사용
커맨드라인에서 pip install python-pptx
폰트와 크기 바꾸기
슬라이드 크기 바꾸기
prs = Presentation()
prs.slide_width = 11887200
prs.slide_height = 6686550
인치로 변경
from pptx import Presentation
from pptx.util import Inches
prs = Presentation() # set width and height to 16 and 9 inches.
prs.slide_width = Inches(16)
prs.slide_height = Inches(9)
공식 문서
python-pptx.readthedocs.io/en/latest/dev/analysis/prs-properties.html
반응형
댓글