Summarize it in a simple way
python3 -c " import pdfplumber pdf_path = '/tmp/workspace/attachments/a07d8a7e-3890-4a3c-b114-89744090e2e9/POLIOMYELITIS (m.s).pdf' text = '' with pdfplumber.open(pdf_path) as pdf: print(f'Total pages: {len(pdf.pages)}') for i, page in enumerate(pdf.pages): t = page.extract_text() if t: text += f'\n--- PAGE {i+1} ---\n' + t print(text[:8000]) "
python3 -c " import pdfplumber from pypdf import PdfReader pdf_path = '/tmp/workspace/attachments/a07d8a7e-3890-4a3c-b114-89744090e2e9/POLIOMYELITIS (m.s).pdf' # Try pypdf reader = PdfReader(pdf_path) print('pypdf pages:', len(reader.pages)) for i, page in enumerate(reader.pages[:3]): t = page.extract_text() print(f'Page {i+1} text length: {len(t) if t else 0}') if t: print(t[:500]) "
python3 -c " from pypdf import PdfReader, PdfWriter import os pdf_path = '/tmp/workspace/attachments/a07d8a7e-3890-4a3c-b114-89744090e2e9/POLIOMYELITIS (m.s).pdf' out_dir = '/tmp/workspace/polio_pages/' os.makedirs(out_dir, exist_ok=True) reader = PdfReader(pdf_path) print('Total pages:', len(reader.pages)) # Save individual pages as single-page PDFs for i, page in enumerate(reader.pages): writer = PdfWriter() writer.add_page(page) out_path = f'{out_dir}page_{i+1}.pdf' with open(out_path, 'wb') as f: writer.write(f) print('Done splitting pages') "
python3 -c " from PIL import Image import fitz # PyMuPDF import os pdf_path = '/tmp/workspace/attachments/a07d8a7e-3890-4a3c-b114-89744090e2e9/POLIOMYELITIS (m.s).pdf' out_dir = '/tmp/workspace/polio_images/' os.makedirs(out_dir, exist_ok=True) doc = fitz.open(pdf_path) print('Pages:', len(doc)) for i, page in enumerate(doc): pix = page.get_pixmap(dpi=150) img_path = f'{out_dir}page_{i+1}.png' pix.save(img_path) print(f'Saved page {i+1}: {os.path.getsize(img_path)} bytes') print('Done') "
pip install --user pymupdf -q && python3 -c " import fitz, os pdf_path = '/tmp/workspace/attachments/a07d8a7e-3890-4a3c-b114-89744090e2e9/POLIOMYELITIS (m.s).pdf' out_dir = '/tmp/workspace/polio_images/' os.makedirs(out_dir, exist_ok=True) doc = fitz.open(pdf_path) print('Pages:', len(doc)) for i, page in enumerate(doc): pix = page.get_pixmap(dpi=150) img_path = f'{out_dir}page_{i+1}.png' pix.save(img_path) print('Done') "
python3 -c " import base64, os # Check file sizes out_dir = '/tmp/workspace/polio_images/' for f in sorted(os.listdir(out_dir)): size = os.path.getsize(out_dir+f) print(f'{f}: {size} bytes') "
python3 -c " from PIL import Image import os in_dir = '/tmp/workspace/polio_images/' out_dir = '/tmp/workspace/polio_small/' os.makedirs(out_dir, exist_ok=True) for f in sorted(os.listdir(in_dir)): if f.endswith('.png'): img = Image.open(in_dir + f) # Resize to width 900, keep aspect w, h = img.size new_w = 900 new_h = int(h * new_w / w) img = img.resize((new_w, new_h), Image.LANCZOS) out_path = out_dir + f.replace('.png', '.jpg') img.save(out_path, 'JPEG', quality=60) print(f'{f} -> {os.path.getsize(out_path)} bytes') "
| Type | Description |
|---|---|
| Paralytic | Most severe - attacks motor neurons, causes flaccid paralysis, muscle wasting |
| Non-paralytic | Muscle weakness occurs early and later recovers |
| Subclinical | No symptoms at all |
| Abortive | Only mild respiratory/GI symptoms, no paralysis |
| Stage | Key Physio Interventions |
|---|---|
| Acute | Complete rest, correct positioning, splints, gentle passive movements (2-3x/day) |
| Recovery | Functional splints, careful positioning (avoid ITB contracture), contract management (stretching TA and ITB), strengthening via manual/electrical stimulation, hydrotherapy |
| Stable Disability | Splinting to prevent deformity progression, stretching, strengthening, preserving function |
| Drug | Purpose |
|---|---|
| NSAIDs | Muscle/joint pain |
| Muscle relaxants | Stiffness/pain |
| Prednisone | Inflammation |
| Pyridostigmine | Skeletal muscle weakness |
| Immunoglobulin | Fatigue, pain |
| Co-enzyme Q10 | Fatigue, pain |