This is an example of health talk my topic is prevention and first aid of foreign body in eye reffer the content give me a similar document on my topic the tables need to match its a format

Reading File
Running Command

cd /tmp/workspace/attachments/e85a9492-34fa-4ad6-85c1-cd5f452c840d/ && python3 -c " import pdfplumber with pdfplumber.open('sandhra,29, pediatric health talk.pdf') as pdf: print(f'Total pages: {len(pdf.pages)}') for i, page in enumerate(pdf.pages): print(f'\n=== PAGE {i+1} ===') text = page.extract_text() if text: print(text) tables = page.extract_tables() if tables: print(f' [TABLES FOUND: {len(tables)}]') for j, table in enumerate(tables): print(f' Table {j+1}:') for row in table: print(f' {row}') "

analyse_media
Running Command

python3 -c " from pypdf import PdfReader import sys reader = PdfReader('/tmp/workspace/attachments/e85a9492-34fa-4ad6-85c1-cd5f452c840d/sandhra,29, pediatric health talk.pdf') print(f'Pages: {len(reader.pages)}') for i, page in enumerate(reader.pages): text = page.extract_text() print(f'Page {i+1}: {repr(text[:500]) if text else \"EMPTY\"}') "

Running Command

python3 -c " from pypdf import PdfReader from PIL import Image import io, os reader = PdfReader('/tmp/workspace/attachments/e85a9492-34fa-4ad6-85c1-cd5f452c840d/sandhra,29, pediatric health talk.pdf') os.makedirs('/tmp/workspace/pdf_pages', exist_ok=True) for i, page in enumerate(reader.pages): for img_obj in page.images: img_data = img_obj.data try: img = Image.open(io.BytesIO(img_data)) out_path = f'/tmp/workspace/pdf_pages/page_{i+1}.png' img.save(out_path) print(f'Saved page {i+1}: {img.size}') break except Exception as e: print(f'Page {i+1} error: {e}') "

Running Command

python3 -c " import base64, os pages = [f'/tmp/workspace/pdf_pages/page_{i}.png' for i in range(1,8)] for p in pages: size = os.path.getsize(p) print(f'{p}: {size} bytes') "

Reading File
Reading File
Running Command

python3 -c " from PIL import Image import os # Resize pages to smaller size for analysis for i in range(1, 8): img = Image.open(f'/tmp/workspace/pdf_pages/page_{i}.png') # Resize to ~800px width ratio = 800 / img.width new_size = (800, int(img.height * ratio)) img_resized = img.resize(new_size, Image.LANCZOS) out = f'/tmp/workspace/pdf_pages/small_page_{i}.jpg' img_resized.save(out, 'JPEG', quality=85) print(f'Saved {out}: {os.path.getsize(out)} bytes') "

Reading File
Reading File
Reading File
Reading File
Reading File
Reading File
Reading File
Reading File
Running Command

mkdir -p /tmp/workspace/health-talk && cat > /tmp/workspace/health-talk/create_doc.py << 'PYEOF' from docx import Document from docx.shared import Pt, Inches, RGBColor, Cm from docx.enum.text import WD_ALIGN_PARAGRAPH from docx.enum.table import WD_TABLE_ALIGNMENT, WD_ALIGN_VERTICAL from docx.oxml.ns import qn from docx.oxml import OxmlElement import copy doc = Document() # ── Page margins ────────────────────────────────────────────── from docx.shared import Cm section = doc.sections[0] section.top_margin = Cm(2.5) section.bottom_margin = Cm(2.5) section.left_margin = Cm(2.5) section.right_margin = Cm(2.5) # ── Default font ───────────────────────────────────────────── for style_name in ['Normal', 'Body Text']: try: s = doc.styles[style_name] s.font.name = 'Times New Roman' s.font.size = Pt(12) except: pass def set_cell_border(cell, **kwargs): """Set cell borders. kwargs: top, bottom, left, right = dict(val, sz, color)""" tc = cell._tc tcPr = tc.get_or_add_tcPr() tcBorders = OxmlElement('w:tcBorders') for edge in ('top','left','bottom','right','insideH','insideV'): if edge in kwargs: tag = OxmlElement(f'w:{edge}') tag.set(qn('w:val'), kwargs[edge].get('val','single')) tag.set(qn('w:sz'), kwargs[edge].get('sz','4')) tag.set(qn('w:space'),'0') tag.set(qn('w:color'), kwargs[edge].get('color','000000')) tcBorders.append(tag) tcPr.append(tcBorders) def para_in_cell(cell, text, bold=False, size=12, align=WD_ALIGN_PARAGRAPH.LEFT, italic=False): p = cell.paragraphs[0] p.alignment = align run = p.add_run(text) run.bold = bold run.italic = italic run.font.size = Pt(size) run.font.name = 'Times New Roman' return p def add_para_to_cell(cell, text, bold=False, size=12, align=WD_ALIGN_PARAGRAPH.LEFT, italic=False, space_before=0): p = cell.add_paragraph() p.alignment = align p.paragraph_format.space_before = Pt(space_before) run = p.add_run(text) run.bold = bold run.italic = italic run.font.size = Pt(size) run.font.name = 'Times New Roman' return p def set_col_width(table, col_idx, width_cm): for row in table.rows: row.cells[col_idx].width = Cm(width_cm) # ═══════════════════════════════════════════════════════════════ # PAGE 1 – TITLE PAGE # ═══════════════════════════════════════════════════════════════ title_para = doc.add_paragraph() title_para.alignment = WD_ALIGN_PARAGRAPH.CENTER title_para.paragraph_format.space_before = Pt(72) title_para.paragraph_format.space_after = Pt(0) run = title_para.add_run('HEALTH TALK ON') run.bold = True run.font.size = Pt(36) run.font.color.rgb = RGBColor(0xFF, 0x00, 0x00) run.font.name = 'Times New Roman' title_para2 = doc.add_paragraph() title_para2.alignment = WD_ALIGN_PARAGRAPH.CENTER title_para2.paragraph_format.space_before = Pt(18) run2 = title_para2.add_run('PREVENTION AND FIRST AID OF\nFOREIGN BODY IN EYE') run2.bold = True run2.font.size = Pt(32) run2.font.color.rgb = RGBColor(0xFF, 0x00, 0x00) run2.font.name = 'Times New Roman' # Submission details (bottom right) doc.add_paragraph() doc.add_paragraph() doc.add_paragraph() doc.add_paragraph() doc.add_paragraph() details = [ 'Submitted to: Ms. _____________', 'Submitted by: Ms. _____________', 'Roll no.: ____', 'Submitted on: __/__/____', ] for d in details: p = doc.add_paragraph() p.alignment = WD_ALIGN_PARAGRAPH.RIGHT r = p.add_run(d) r.font.size = Pt(11) r.font.name = 'Times New Roman' doc.add_page_break() # ═══════════════════════════════════════════════════════════════ # PAGE 2 – DETAILS PAGE # ═══════════════════════════════════════════════════════════════ details_data = [ ('Subject', 'Child Health Nursing'), ('Topic', 'Prevention and First Aid of Foreign Body in Eye'), ('Venue', 'Bai Jerbai Wadia Hospital for Children'), ('Date', ''), ('Time', '20 mins.'), ('Group', 'Parents, caregivers and general public'), ('Language', 'English / Hindi'), ('Method of Teaching', 'Lecture cum discussion'), ('A.V. Aids', 'Chart, flash card, flipchart'), ('Previous knowledge', 'The group has a basic idea about the eye and common injuries.'), ] for label, value in details_data: p = doc.add_paragraph() p.paragraph_format.space_before = Pt(4) p.paragraph_format.space_after = Pt(4) r1 = p.add_run(f'{label}: ') r1.bold = True r1.font.size = Pt(12) r1.font.name = 'Times New Roman' r2 = p.add_run(value) r2.font.size = Pt(12) r2.font.name = 'Times New Roman' doc.add_page_break() # ═══════════════════════════════════════════════════════════════ # PAGE 3 – AIM & OBJECTIVES # ═══════════════════════════════════════════════════════════════ aim_p = doc.add_paragraph() r = aim_p.add_run('Aim: ') r.bold = True r.font.size = Pt(12) r.font.name = 'Times New Roman' r2 = aim_p.add_run( 'At the end of the health talk, group will be able to gain adequate knowledge on ' 'prevention and first aid of foreign body in eye.' ) r2.font.size = Pt(12) r2.font.name = 'Times New Roman' doc.add_paragraph() obj_p = doc.add_paragraph() r = obj_p.add_run('Objectives: ') r.bold = True r.font.size = Pt(12) r.font.name = 'Times New Roman' r2 = obj_p.add_run('The group will be able to:') r2.font.size = Pt(12) r2.font.name = 'Times New Roman' objectives = [ 'Define foreign body in eye.', 'List the types/causes of foreign body in eye.', 'Describe the signs and symptoms of foreign body in eye.', 'Explain the prevention of foreign body in eye.', 'Demonstrate the first aid measures for foreign body in eye.', ] for i, obj in enumerate(objectives, 1): p = doc.add_paragraph() p.paragraph_format.left_indent = Cm(1.5) p.paragraph_format.space_before = Pt(2) r = p.add_run(f'{i}. {obj}') r.font.size = Pt(12) r.font.name = 'Times New Roman' doc.add_page_break() # ═══════════════════════════════════════════════════════════════ # PAGES 4-6 – MAIN TABLE # ═══════════════════════════════════════════════════════════════ # Columns: Sr.No | Time | Objectives | Content | Teaching & Learning Activities | AV Aids # Widths: 1 | 1.5 | 3.5 | 7 | 4 | 1.5 => total ~18.5 cm (fits in A4 with 2.5cm margins = 16cm usable) # Adjusted: 0.8 | 1.2 | 3.0 | 6.5 | 3.5 | 1.5 = 16.5cm table = doc.add_table(rows=1, cols=6) table.style = 'Table Grid' table.alignment = WD_TABLE_ALIGNMENT.CENTER # Header row hdr = table.rows[0] hdr.height = Cm(1) headers = ['Sr.\nNo', 'Time', 'Objectives', 'Content', 'Teaching and\nlearning activities', 'AV\naids'] col_widths = [0.8, 1.2, 3.0, 6.5, 3.5, 1.5] for i, (h, w) in enumerate(zip(headers, col_widths)): cell = hdr.cells[i] cell.width = Cm(w) para_in_cell(cell, h, bold=True, size=11, align=WD_ALIGN_PARAGRAPH.CENTER) cell.vertical_alignment = WD_ALIGN_VERTICAL.CENTER # ── Row data ────────────────────────────────────────────────── rows_data = [ { 'sr': '1.', 'time': '2 min', 'obj': 'To arouse the interest of the group', 'content': ( 'Role play: Two friends are talking. One friend tells the other that ' 'she got dust in her eye while travelling on a bike and is rubbing it hard. ' 'The other friend stops her and says rubbing can make it worse and explains ' 'what should be done instead.' ), 'tla': ( 'Student nurse greets the group and then asks the group to guess the topic. ' 'She appreciates their answer.' ), 'av': 'Role play', }, { 'sr': '2.', 'time': '2 min', 'obj': 'The group will be able to define foreign body in eye.', 'content': ( 'A foreign body in the eye is any object, particle or substance that enters ' 'the eye from outside. It may be non-penetrating (sitting on the surface of ' 'the eye) or penetrating (entering the eye tissues). Common examples include ' 'dust, sand, metal shavings, insects, eyelashes or chemical splashes.' ), 'tla': ( 'Student nurse asks the group what they know about foreign bodies in the eye ' 'and then explains the definition.' ), 'av': 'Chart', }, { 'sr': '3.', 'time': '2 min', 'obj': 'The group will be able to list the types and causes of foreign body in eye.', 'content': ( 'Types:\n' '• Superficial: dust, sand, eyelash, insect, contact lens.\n' '• Penetrating: metal fragments, glass, thorns, wire.\n\n' 'Common causes:\n' '• Working without eye protection (grinding, welding, carpentry).\n' '• Outdoor activities in windy/dusty conditions.\n' '• Chemical splash from household or industrial products.\n' '• Sporting injuries.\n' '• Children playing with small objects.' ), 'tla': ( 'Student nurse explains the types and causes. She asks the group to mention ' 'any causes they have encountered.' ), 'av': 'Chart', }, { 'sr': '4.', 'time': '2 min', 'obj': 'The group will be able to describe the signs and symptoms of foreign body in eye.', 'content': ( '• Sudden pain or discomfort in the eye.\n' '• Redness and watering of the eye.\n' '• Feeling of "something in the eye" (foreign body sensation).\n' '• Blurred or decreased vision.\n' '• Sensitivity to light (photophobia).\n' '• Difficulty keeping the eye open.\n' '• Visible object on the eye surface (in superficial cases).\n' '• Bleeding from the eye (in penetrating injuries).' ), 'tla': ( 'Student nurse explains the signs and symptoms using a chart. ' 'She asks the group if they have experienced any of these.' ), 'av': 'Chart', }, { 'sr': '5.', 'time': '5 min', 'obj': 'The group will be able to explain the prevention of foreign body in eye.', 'content': ( '• Always wear protective eyewear (goggles/safety glasses) when ' 'grinding, welding, cutting wood or working with chemicals.\n' '• Wear sunglasses or visored helmets while riding bikes or cycling in ' 'dusty areas.\n' '• Keep children away from sharp objects, chemicals and small particles.\n' '• Store chemicals in closed, labelled containers away from children.\n' '• Wash hands before touching the eyes or handling contact lenses.\n' '• Use proper contact lens hygiene; do not sleep with lenses in.\n' '• Ensure adequate lighting in the workplace to prevent accidents.\n' '• Follow occupational safety guidelines at worksites.\n' '• Regular eye check-ups help detect and address vulnerability early.' ), 'tla': ( 'Student nurse discusses prevention measures using a flipchart. ' 'She asks the group to list a few prevention tips and appreciates their answers ' 'and explains the topic.' ), 'av': 'Flip-chart', }, { 'sr': '6.', 'time': '7 min', 'obj': 'The group will be able to demonstrate the first aid measures for foreign body in eye.', 'content': ( 'DO NOT:\n' '• Do NOT rub the eye — rubbing can embed the object deeper.\n' '• Do NOT try to remove a penetrating object with fingers or tweezers.\n' '• Do NOT apply pressure on the eyeball.\n\n' 'First Aid Steps (Superficial foreign body):\n' '1. Wash hands thoroughly with soap and water.\n' '2. Blink the eye rapidly — tears may wash the object out naturally.\n' '3. Pull the upper eyelid over the lower eyelid and release — this allows ' 'lower lashes to sweep the inner surface.\n' '4. Gently flush the eye with clean, cool water or sterile saline using ' 'a clean cup, eye-wash bottle or tap water for 10-15 minutes. ' 'Allow water to flow from the inner corner outward.\n' '5. If the object is visible and on the white of the eye, gently touch it ' 'with the moistened corner of a clean cloth or cotton swab. ' 'Do not touch the cornea (coloured part).\n' '6. After removal, if redness or discomfort continues, cover the eye ' 'loosely with a clean pad and seek medical attention.\n\n' 'First Aid Steps (Penetrating foreign body):\n' '1. Do NOT attempt to remove the object.\n' '2. Cover the eye loosely with a paper cup or shield — ' 'do NOT press on the eye.\n' '3. Cover the other eye to reduce movement of the injured eye.\n' '4. Keep the person calm and in a sitting position.\n' '5. Rush to the nearest emergency or eye care facility IMMEDIATELY.\n\n' 'Chemical Splash to the Eye:\n' '1. Immediately flush the eye with large amounts of cool, clean water ' 'for at least 15-20 minutes.\n' '2. Remove contact lenses if present before flushing.\n' '3. Do not rub the eye.\n' '4. Seek emergency medical help immediately after flushing.' ), 'tla': ( 'Student nurse demonstrates first aid steps using a flash card. ' 'She asks the group to repeat the steps. She appreciates correct answers ' 'and corrects if required.' ), 'av': 'Flash card', }, ] for rd in rows_data: row = table.add_row() row.cells[0].width = Cm(col_widths[0]) row.cells[1].width = Cm(col_widths[1]) row.cells[2].width = Cm(col_widths[2]) row.cells[3].width = Cm(col_widths[3]) row.cells[4].width = Cm(col_widths[4]) row.cells[5].width = Cm(col_widths[5]) para_in_cell(row.cells[0], rd['sr'], size=11, align=WD_ALIGN_PARAGRAPH.CENTER) row.cells[0].vertical_alignment = WD_ALIGN_VERTICAL.TOP para_in_cell(row.cells[1], rd['time'], size=11, align=WD_ALIGN_PARAGRAPH.CENTER) row.cells[1].vertical_alignment = WD_ALIGN_VERTICAL.TOP para_in_cell(row.cells[2], rd['obj'], size=11) row.cells[2].vertical_alignment = WD_ALIGN_VERTICAL.TOP # Content cell — handle bullet lines content_lines = rd['content'].split('\n') first = True for line in content_lines: if first: para_in_cell(row.cells[3], line, size=11) first = False else: add_para_to_cell(row.cells[3], line, size=11) row.cells[3].vertical_alignment = WD_ALIGN_VERTICAL.TOP para_in_cell(row.cells[4], rd['tla'], size=11) row.cells[4].vertical_alignment = WD_ALIGN_VERTICAL.TOP para_in_cell(row.cells[5], rd['av'], size=11, align=WD_ALIGN_PARAGRAPH.CENTER) row.cells[5].vertical_alignment = WD_ALIGN_VERTICAL.TOP doc.add_page_break() # ═══════════════════════════════════════════════════════════════ # LAST PAGE – SUMMARY, RECAPITULATION, CONCLUSION, BIBLIOGRAPHY # ═══════════════════════════════════════════════════════════════ def section_heading(text): p = doc.add_paragraph() p.paragraph_format.space_before = Pt(8) p.paragraph_format.space_after = Pt(4) r = p.add_run(text) r.bold = True r.font.size = Pt(12) r.font.name = 'Times New Roman' return p def body_text(text): p = doc.add_paragraph() p.paragraph_format.space_before = Pt(2) p.paragraph_format.space_after = Pt(2) p.paragraph_format.left_indent = Cm(1.5) r = p.add_run(text) r.font.size = Pt(12) r.font.name = 'Times New Roman' return p # Summary section_heading('Summary:-') body_text( 'Today we discussed about the definition of foreign body in eye, its types and causes, ' 'signs and symptoms, prevention measures and first aid steps for both superficial and ' 'penetrating foreign bodies and chemical splashes.' ) # Recapitulation doc.add_paragraph() section_heading('Recapitulation:-') recap_qs = [ 'i. What do you mean by foreign body in eye?', 'ii. List any two prevention measures for foreign body in eye.', 'iii. What are the first aid steps for a superficial foreign body in eye?', ] for q in recap_qs: body_text(q) # Conclusion doc.add_paragraph() section_heading('Conclusion:-') body_text( 'So here I conclude my topic of prevention and first aid of foreign body in eye. ' 'I hope that everyone has understood and if anyone has any doubt they can ask me.' ) # Bibliography doc.add_paragraph() section_heading('Bibliography:-') refs = [ '1. Kliegman R.M., Nelson Textbook of Pediatrics, 21st Edition, Elsevier.', '2. Wong D.L., Essentials of Pediatric Nursing, 9th Edition, Mosby.', '3. National Eye Institute – https://www.nei.nih.gov', '4. WHO Eye Injury Prevention Guidelines – https://www.who.int', '5. https://www.medicalnewstoday.com/articles/foreign-body-in-eye', ] for ref in refs: body_text(ref) # ── Save ───────────────────────────────────────────────────── out = '/tmp/workspace/health-talk/Foreign_Body_Eye_Health_Talk.docx' doc.save(out) print(f'Saved: {out}') PYEOF python3 /tmp/workspace/health-talk/create_doc.py

Running Command

python3 -c " from docx import Document doc = Document('/tmp/workspace/health-talk/Foreign_Body_Eye_Health_Talk.docx') print(f'Paragraphs: {len(doc.paragraphs)}') print(f'Tables: {len(doc.tables)}') if doc.tables: t = doc.tables[0] print(f'Table rows: {len(t.rows)}, cols: {len(t.columns)}') for i, row in enumerate(t.rows): print(f' Row {i}: {[c.text[:40] for c in row.cells]}') "

Your document is ready. Here is your download link:

Foreign Body Eye Health Talk

Word Document · DOCX


The document follows the exact same format as the sample (Sandhra's pediatric health talk). Here is what is included:
Page 1 - Title Page
  • Large red bold title: "HEALTH TALK ON PREVENTION AND FIRST AID OF FOREIGN BODY IN EYE"
  • Submission details (bottom right) for you to fill in
Page 2 - Details Page
  • Subject, Topic, Venue, Date, Time, Group, Language, Method of Teaching, A.V. Aids, Previous knowledge
Page 3 - Aim & Objectives
  • Aim statement
  • 5 numbered objectives (define, list types/causes, describe signs/symptoms, explain prevention, demonstrate first aid)
Pages 4-6 - Main Table (6 columns) Sr. No | Time | Objectives | Content | Teaching & Learning Activities | AV Aids
Sr.TimeTopic
12 minIntroduction / role play
22 minDefinition of foreign body in eye
32 minTypes and causes
42 minSigns and symptoms
55 minPrevention measures
67 minFirst aid (superficial, penetrating, chemical splash)
Last Page
  • Summary, Recapitulation (3 questions), Conclusion, Bibliography
Just fill in your name, roll number, date, and teacher's name on the title and details pages.
This is a shared conversation. Sign in to Orris to start your own chat.