Created
September 17, 2022 13:00
-
-
Save samirsaci/b7e4ce81e8bc3aa49b51deeeb9f18200 to your computer and use it in GitHub Desktop.
Automate PPT
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create the presentation object | |
prs = Presentation() | |
# Layout Choice for the introduction slide | |
image_slide_layout = prs.slide_layouts[5] | |
page = 1 | |
'''Slide Introduction''' | |
# Create the slide | |
title_slide_layout = prs.slide_layouts[0] | |
slide = prs.slides.add_slide(title_slide_layout) | |
title = slide.shapes.title | |
subtitle = slide.placeholders[1] | |
background = slide.background | |
fill = background.fill | |
fill.solid() | |
fill.fore_color.rgb = RGBColor(0, 32, 96) | |
# Add Title | |
title.text = "WAREHOUSE WORKLOAD ANALYSIS" | |
title.text_frame.paragraphs[0].font.color.rgb = RGBColor(255, 255, 255) | |
# Add Subtitle | |
subtitle.text = 'Orders/day for the last {} weeks'.format(len(LIST_WEEKS)) | |
subtitle.text_frame.paragraphs[0].font.color.rgb = RGBColor(255, 255, 255) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment