헤더푸터
Contents
[
Hide
]
Aspose.Slides for Python via .NET를 사용하여 바닥글을 추가하고 날짜 및 시간 플레이스홀더를 업데이트하는 방법을 보여줍니다.
바닥글 추가
슬라이드의 바닥글 영역에 텍스트를 추가하고 표시되도록 합니다.
def add_footer():
with slides.Presentation() as presentation:
slide = presentation.slides[0]
slide.header_footer_manager.set_footer_text("My footer")
slide.header_footer_manager.set_footer_visibility(True)
presentation.save("footer.pptx", slides.export.SaveFormat.PPTX)
날짜 및 시간 업데이트
슬라이드의 날짜 및 시간 플레이스홀더를 수정합니다.
def add_date_time():
with slides.Presentation() as presentation:
slide = presentation.slides[0]
slide.header_footer_manager.set_date_time_text("01/01/2024")
slide.header_footer_manager.set_date_time_visibility(True)
presentation.save("date_time.pptx", slides.export.SaveFormat.PPTX)