Enhance this ppt to 40-50 slides. Add images and other relevant information with recent statistics
cd /home/daytona/workspace/attachments/cd3f998b-9038-410f-be60-5585b1c0b83c && python -m markitdown "Trauma Management.pptx" 2>&1 | head -200
cd /home/daytona/workspace/attachments/cd3f998b-9038-410f-be60-5585b1c0b83c && python3 /home/daytona/skills/pptx/scripts/office/unpack.py "Trauma Management.pptx" /home/daytona/workspace/trauma_unpacked/ 2>&1
cd /home/daytona/workspace && mkdir -p trauma_unpacked && unzip -o "/home/daytona/workspace/attachments/cd3f998b-9038-410f-be60-5585b1c0b83c/Trauma Management.pptx" -d trauma_unpacked/ 2>&1 | tail -20
ls -la "/home/daytona/workspace/attachments/cd3f998b-9038-410f-be60-5585b1c0b83c/"
cp "/home/daytona/workspace/attachments/cd3f998b-9038-410f-be60-5585b1c0b83c/Trauma Management.pptx" /home/daytona/workspace/trauma_mgmt.pptx && echo "Copied OK"
cd /home/daytona/workspace && python3 -c " from pptx import Presentation prs = Presentation('trauma_mgmt.pptx') print(f'Slides: {len(prs.slides)}') print(f'Slide width: {prs.slide_width.inches:.2f} inches') print(f'Slide height: {prs.slide_height.inches:.2f} inches') for i, slide in enumerate(prs.slides): print(f'--- Slide {i+1} ---') for shape in slide.shapes: if shape.has_text_frame: for para in shape.text_frame.paragraphs: txt = para.text.strip() if txt: print(f' [{shape.shape_type}] {txt[:120]}') " 2>&1
node -e "const pptx = require('pptxgenjs'); console.log('pptxgenjs version:', pptx.version || 'loaded ok');" 2>&1
mkdir -p /home/daytona/workspace/trauma_raw && cd /home/daytona/workspace && python3 -c " import zipfile, os with zipfile.ZipFile('trauma_mgmt.pptx', 'r') as z: z.extractall('trauma_raw') names = z.namelist() print('Files:', len(names)) slides = [n for n in names if n.startswith('ppt/slides/slide') and n.endswith('.xml')] print('Slides found:', sorted(slides)) " 2>&1
timeout 5 file /home/daytona/workspace/trauma_mgmt.pptx 2>&1; echo "exit: $?"
trauma management statistics 2024 2025 global trauma deaths injury burden
timeout 8 python3 -c " import zipfile with zipfile.ZipFile('/home/daytona/workspace/trauma_mgmt.pptx') as z: names = [n for n in z.namelist() if 'slides/slide' in n and n.endswith('.xml')] print(sorted(names)[:5]) " 2>&1; echo "EXIT:$?"
timeout 10 python3 -c " import zipfile, xml.etree.ElementTree as ET, re def get_text(xml_str): ns = '{http://schemas.openxmlformats.org/drawingml/2006/main}' root = ET.fromstring(xml_str) texts = [] for t in root.iter(ns+'t'): if t.text: texts.append(t.text.strip()) return ' | '.join([x for x in texts if x]) with zipfile.ZipFile('/home/daytona/workspace/trauma_mgmt.pptx') as z: names = sorted([n for n in z.namelist() if 'ppt/slides/slide' in n and n.endswith('.xml')]) print(f'Total slides: {len(names)}') for n in names: data = z.read(n).decode('utf-8','ignore') txt = get_text(data) print(f'--- {n} ---') print(txt[:500]) print() " 2>&1