from pptx import Presentation from pptx.util import Inches, Pt from pptx.enum.shapes import MSO_SHAPE from pptx.dml.color import RGBColor # Create presentation prs = Presentation() # Define title slide title_slide_layout = prs.slide_layouts[0] title_slide = prs.slides.add_slide(title_slide_layout) title = title_slide.shapes.title subtitle = title_slide.placeholders[1] title.text = "John Pork: A Virtual Legend" subtitle.text = "A Tribute to the Pig Who Was More Human Than Most" # Define a function to add a simple text slide def add_text_slide(title_text, body_text): slide_layout = prs.slide_layouts[1] # Title and Content slide = prs.slides.add_slide(slide_layout) title = slide.shapes.title body = slide.placeholders[1] title.text = title_text body.text = body_text # Slides content slides = [ ("Who Was John Pork?", "A digital being, a virtual soul. Stylish, friendly, and oddly real."), ("The Rise of John Pork", "Born from memes, risen to fame. John Pork became a symbol of kindness and relatability."), ("A Digital Soul", "John didn't sell anything. He just existed, reminding us that being there is enough."), ("The Sadness Behind the Meme", "John Pork felt so real, yet he was unreachable. He was our friend we could never touch."), ("Did John Pork Die?", "Perhaps. Not in body, but as the world moved on, his gentle spirit faded from view."), ("Legacy of John Pork", "He taught us that you don't have to be loud to matter. His memory lives in every connection we seek."), ("In Loving Memory", "John Pork\nThe Pig Who Was More Human Than Most Humans.\nWe still hear you calling.") ] # Add each slide for title_text, body_text in slides: add_text_slide(title_text, body_text) # Save presentation prs.save('/mnt/data/john_pork_tribute.pptx')