# -*- coding: utf-8 -*- """Create test PowerPoint presentation""" from pptx import Presentation # Create a new presentation prs = Presentation() # Slide 1: Title slide slide1 = prs.slides.add_slide(prs.slide_layouts[0]) title = slide1.shapes.title subtitle = slide1.placeholders[1] title.text = "Test Presentation for Office File Handler" subtitle.text = "Created to verify skill functionality" # Slide 2: Content slide slide2 = prs.slides.add_slide(prs.slide_layouts[1]) shapes = slide2.shapes title_shape = shapes.title body_shape = shapes.placeholders[1] title_shape.text = "Testing Information" tf = body_shape.text_frame tf.text = "This presentation tests the read_ppt functionality" p = tf.add_paragraph() p.text = "Skill features include:" p = tf.add_paragraph() p.text = "• Read PowerPoint slides" p = tf.add_paragraph() p.text = "• Extract slide content" p = tf.add_paragraph() p.text = "• Support multiple formats" # Slide 3: Another content slide slide3 = prs.slides.add_slide(prs.slide_layouts[1]) title_shape = slide3.shapes.title body_shape = slide3.placeholders[1] title_shape.text = "Technical Details" tf = body_shape.text_frame tf.text = "Python version: 3.14.2" p = tf.add_paragraph() p.text = "Test date: 2026-03-05" p = tf.add_paragraph() p.text = "Skill office-file-handler" # Save presentation output_file = 'test_presentation.pptx' prs.save(output_file) print(f"Created {output_file} successfully!") print(f"Total slides: {len(prs.slides)}")