Untitled

 avatar
unknown
plain_text
5 months ago
905 B
2
Indexable
# Load the original presentation again
ppt_template_path = "/mnt/data/Crypto Mining Project Proposal by Slidesgo.pptx"
ppt_template = Presentation(ppt_template_path)

# Clear existing slides to insert the new Ethereum slides
for slide in ppt_template.slides:
    ppt_template.slides.remove(slide)

# Create new slides with the Ethereum content in the original template
for slide_info in slides_content:
    slide = ppt_template.slides.add_slide(ppt_template.slide_layouts[1])  # Use the title and content layout
    title = slide.shapes.title
    content = slide.shapes.placeholders[1]

    title.text = slide_info["title"]
    content.text = "\n".join(slide_info["content"])

# Save the updated presentation with the original template
ppt_template_file_path = "/mnt/data/Ethereum_Presentation_Updated_Template.pptx"
ppt_template.save(ppt_template_file_path)

ppt_template_file_path
Editor is loading...
Leave a Comment