File size: 888 Bytes
6a4a552
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
"""Inspect the generated PPT to verify content."""
from pathlib import Path
from pptx import Presentation

ROOT = Path(__file__).resolve().parent.parent
PPT_PATH = ROOT / "PPT" / "ScamShield_AI_India_AI_Impact_Buildathon.pptx"

def main():
    prs = Presentation(str(PPT_PATH))
    print(f"Total slides: {len(prs.slides)}\n")
    
    for i, slide in enumerate(prs.slides):
        print(f"{'='*60}")
        print(f"SLIDE {i+1}")
        print(f"{'='*60}")
        shapes_with_text = [sh for sh in slide.shapes if hasattr(sh, "text") and sh.text.strip()]
        if not shapes_with_text:
            print("  [No text content]")
        for j, shape in enumerate(shapes_with_text):
            text = shape.text.strip()
            if len(text) > 150:
                text = text[:150] + "..."
            print(f"  {j+1}. {text}")
        print()

if __name__ == "__main__":
    main()