Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2022 05:31 AM
******************************************************
from pptx import Presentation
from pptx.util import Inches, Pt
prs = Presentation('/dbfs/mnt/powerpoint-templates/MAPresentation.pptx')
#First slide - Index 0
slide = prs.slides.add_slide(prs.slide_layouts[0])
# Add a picture to the given dimensions
slide.placeholders[14].insert_picture('/dbfs/mnt/powerpoint-templates/page_type_transaction_barplot.png')
prs.save("/dbfs/mnt/powerpoint-templates/MA_presentation_New.pptx")