[Python-pptx] 업무 자동화 - 파이썬으로 파워포인트 편집하기
오.오.쓰 에 오신 것을 환영합니다. [보고서 자동화 프로젝트] 입니다. 아래와 같은 순서로 배워보겠습니다. 1. 학습 목표 2. 사전 준비 3. 사전 지식 쌓기 4. 구현 5. 요약정리 1. 학습 목표 일상 속
ai-creator.tistory.com
[Python-pptx] 업무 자동화 - 파이썬으로 파워포인트 편집하기
오.오.쓰 에 오신 것을 환영합니다. [보고서 자동화 프로젝트] 입니다. 아래와 같은 순서로 배워보겠습니다. 1. 학습 목표 2. 사전 준비 3. 사전 지식 쌓기 4. 구현 5. 요약정리 1. 학습 목표 일상 속
ai-creator.tistory.com
python-pptx 라이브러리 사용
커맨드라인에서 pip install python-pptx
폰트와 크기 바꾸기
파이썬 파워포인트(Power Point) 제목 폰트 변경 및 사이즈 조절 방법 | python-pptx | ppt | python ppt 사용
이걸 Python 카테고리에 넣을지 Trouble Shooting에 넣을지 한참 고민한듯... 회사에서 PPT의 슬라이드에 있는 특정 텍스트 내용을 바꾸는 Script를 만들어달라고 하여서 만드는데, Text 자체를 바꾸는 건
gmyankee.tistory.com
슬라이드 크기 바꾸기
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
Presentation properties — python-pptx 0.6.18 documentation
Overview The presentation object has a few interesting properties. Right now I’m interested in slide size.
python-pptx.readthedocs.io
댓글