File size: 854 Bytes
a9dc537
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
29
30
31
32
33
34
35
from pptx import Presentation

pptx_path = "/home/mhamdan/SPARKNET/presentation/SPARKNET_Academic_Presentation_IMPROVED.pptx"
prs = Presentation(pptx_path)

print("=" * 80)
print("SPARKNET PRESENTATION - COMPLETE SPEAKER NOTES")
print("=" * 80)
print()

for idx, slide in enumerate(prs.slides, 1):
    print(f"\n{'='*80}")
    print(f"SLIDE {idx}")
    print('='*80)
    print()
    
    if slide.has_notes_slide:
        notes_slide = slide.notes_slide
        if notes_slide.notes_text_frame:
            notes = notes_slide.notes_text_frame.text.strip()
            if notes:
                print(notes)
            else:
                print("(No speaker notes)")
        else:
            print("(No notes text frame)")
    else:
        print("(No notes slide)")
    
    print()

print("\n" + "="*80)
print("END OF SPEAKER NOTES")
print("="*80)