Poster presentation of Breast feeding and future gynaecological health on occasion of "INTERNATIONAL BREAST FEEDING WEEK- 2026" by THE DEPARTMENT OF PRASOOTI TANTRA EVUM STRI ROGA AND DEPARTMENT OF KOUMARABHRITYA make it deatiled attractive simplified and easily understood by common people and both ayurvedic and modern contents make it well designed and attractive
mkdir -p /tmp/workspace/breastfeeding-poster && ls /tmp/workspace/
~/breastfeeding-poster/create_poster.py
from pptx import Presentation
from pptx.util import Inches, Pt, Emu
from pptx.dml.color import RGBColor
from pptx.enum.text import PP_ALIGN, MSO_ANCHOR
from pptx.oxml.ns import qn
from pptx.oxml import parse_xml
from lxml import etree
import copy
from io import BytesIO
# ── Colour palette ──────────────────────────────────────────────────────────
SAFFRON = RGBColor(0xFF, 0x6F, 0x00) # deep saffron (Ayurveda accent)
DEEP_GREEN = RGBColor(0x1B, 0x5E, 0x20) # forest green (life/nature)
TEAL = RGBColor(0x00, 0x69, 0x6B) # modern teal
GOLD = RGBColor(0xF9, 0xA8, 0x25) # warm gold
CREAM = RGBColor(0xFF, 0xF8, 0xF0) # warm cream background
PALE_GREEN = RGBColor(0xE8, 0xF5, 0xE9) # pale green panel
PALE_SAFFRON = RGBColor(0xFF, 0xF3, 0xE0) # pale saffron panel
PALE_TEAL = RGBColor(0xE0, 0xF2, 0xF1) # pale teal panel
PALE_PINK = RGBColor(0xFCE4EC) # pale pink panel
WHITE = RGBColor(0xFF, 0xFF, 0xFF)
DARK_TEXT = RGBColor(0x21, 0x21, 0x21)
MID_TEXT = RGBColor(0x37, 0x47, 0x4F)
DARK_GREEN_H = RGBColor(0x00, 0x4D, 0x40) # dark teal headings
MAROON = RGBColor(0x88, 0x00, 0x24)
# A3 portrait: 11.69 × 16.54 inches
W = Inches(11.69)
H = Inches(16.54)
prs = Presentation()
prs.slide_width = W
prs.slide_height = H
blank_layout = prs.slide_layouts[6]
slide = prs.slides.add_slide(blank_layout)
# ─────────────────────────────────────────────────────────────────────────────
# HELPER FUNCTIONS
# ─────────────────────────────────────────────────────────────────────────────
def fill_shape(shape, rgb):
"""Solid fill a shape with an RGBColor."""
sp = shape._element
spPr = sp.find(qn('p:spPr'))
if spPr is None:
spPr = etree.SubElement(sp, qn('p:spPr'))
# remove old fill
for old in spPr.findall(qn('a:solidFill')):
spPr.remove(old)
for old in spPr.findall(qn('a:noFill')):
spPr.remove(old)
solidFill = etree.SubElement(spPr, qn('a:solidFill'))
srgbClr = etree.SubElement(solidFill, qn('a:srgbClr'))
srgbClr.set('val', f'{rgb[0]:02X}{rgb[1]:02X}{rgb[2]:02X}')
def no_line(shape):
"""Remove border line from a shape."""
sp = shape._element
spPr = sp.find(qn('p:spPr'))
if spPr is None:
spPr = etree.SubElement(sp, qn('p:spPr'))
ln = spPr.find(qn('a:ln'))
if ln is None:
ln = etree.SubElement(spPr, qn('a:ln'))
# noFill
for c in list(ln):
ln.remove(c)
etree.SubElement(ln, qn('a:noFill'))
def add_rect(slide, x, y, w, h, rgb, radius_emu=None):
"""Add a filled rectangle (optionally rounded)."""
shape = slide.shapes.add_shape(
1, # MSO_SHAPE_TYPE.RECTANGLE
x, y, w, h
)
fill_shape(shape, rgb)
no_line(shape)
if radius_emu:
sp = shape._element
spPr = sp.find(qn('p:spPr'))
prstGeom = spPr.find(qn('a:prstGeom'))
if prstGeom is not None:
spPr.remove(prstGeom)
prstGeom = etree.SubElement(spPr, qn('a:prstGeom'))
prstGeom.set('prst', 'roundRect')
avLst = etree.SubElement(prstGeom, qn('a:avLst'))
gd = etree.SubElement(avLst, qn('a:gd'))
gd.set('name', 'adj')
gd.set('fmla', f'val {radius_emu}')
return shape
def add_textbox(slide, x, y, w, h, text, font_size, bold=False, italic=False,
color=DARK_TEXT, align=PP_ALIGN.LEFT, wrap=True,
v_anchor=MSO_ANCHOR.TOP, font_name="Calibri",
margin_l=Inches(0.05), margin_t=Inches(0.03)):
tb = slide.shapes.add_textbox(x, y, w, h)
tf = tb.text_frame
tf.word_wrap = wrap
tf.vertical_anchor = v_anchor
tf.margin_left = margin_l
tf.margin_right = margin_l
tf.margin_top = margin_t
tf.margin_bottom = margin_t
p = tf.paragraphs[0]
p.alignment = align
run = p.add_run()
run.text = text
run.font.name = font_name
run.font.size = Pt(font_size)
run.font.bold = bold
run.font.italic = italic
run.font.color.rgb = color
return tb
def add_multiline_textbox(slide, x, y, w, h, lines, font_size, bold=False,
italic=False, color=DARK_TEXT, align=PP_ALIGN.LEFT,
wrap=True, font_name="Calibri",
line_spacing_pt=None,
margin_l=Inches(0.08), margin_t=Inches(0.05)):
"""lines = list of (text, bold_override, size_override, color_override)"""
tb = slide.shapes.add_textbox(x, y, w, h)
tf = tb.text_frame
tf.word_wrap = wrap
tf.margin_left = margin_l
tf.margin_right = margin_l
tf.margin_top = margin_t
tf.margin_bottom = margin_t
first = True
for item in lines:
if isinstance(item, str):
text = item
b_ov = bold
s_ov = font_size
c_ov = color
else:
text = item[0]
b_ov = item[1] if len(item) > 1 else bold
s_ov = item[2] if len(item) > 2 else font_size
c_ov = item[3] if len(item) > 3 else color
if first:
p = tf.paragraphs[0]
first = False
else:
p = tf.add_paragraph()
p.alignment = align
if line_spacing_pt:
from pptx.oxml.ns import qn as _qn
pPr = p._pPr
if pPr is None:
pPr = p._p.get_or_add_pPr()
lnSpc = etree.SubElement(pPr, qn('a:lnSpc'))
spcPts = etree.SubElement(lnSpc, qn('a:spcPts'))
spcPts.set('val', str(int(line_spacing_pt * 100)))
run = p.add_run()
run.text = text
run.font.name = font_name
run.font.size = Pt(s_ov)
run.font.bold = b_ov
run.font.italic = italic
run.font.color.rgb = c_ov
return tb
# ─────────────────────────────────────────────────────────────────────────────
# BACKGROUND
# ─────────────────────────────────────────────────────────────────────────────
add_rect(slide, Inches(0), Inches(0), W, H, CREAM)
# Decorative top stripe (saffron)
add_rect(slide, Inches(0), Inches(0), W, Inches(0.18), SAFFRON)
# Decorative bottom stripe (saffron)
add_rect(slide, Inches(0), H - Inches(0.18), W, Inches(0.18), SAFFRON)
# Left accent bar (green)
add_rect(slide, Inches(0), Inches(0), Inches(0.18), H, DEEP_GREEN)
# Right accent bar (green)
add_rect(slide, W - Inches(0.18), Inches(0), Inches(0.18), H, DEEP_GREEN)
# ─────────────────────────────────────────────────────────────────────────────
# HEADER BAND
# ─────────────────────────────────────────────────────────────────────────────
header_h = Inches(2.55)
add_rect(slide, Inches(0.18), Inches(0.18), W - Inches(0.36), header_h - Inches(0.18), DEEP_GREEN, radius_emu=0)
# Gold decorative line below header
add_rect(slide, Inches(0.18), header_h, W - Inches(0.36), Inches(0.06), GOLD)
# Event title (top)
add_textbox(slide,
Inches(0.3), Inches(0.22), W - Inches(0.6), Inches(0.52),
"🌸 INTERNATIONAL BREASTFEEDING WEEK 2026 🌸",
font_size=20, bold=True, color=GOLD,
align=PP_ALIGN.CENTER, font_name="Calibri")
# Main poster title
add_textbox(slide,
Inches(0.3), Inches(0.72), W - Inches(0.6), Inches(0.88),
"BREASTFEEDING & FUTURE\nGYNAECOLOGICAL HEALTH",
font_size=28, bold=True, color=WHITE,
align=PP_ALIGN.CENTER, font_name="Calibri")
# Subtitle band (saffron)
add_rect(slide, Inches(0.18), Inches(1.65), W - Inches(0.36), Inches(0.52), SAFFRON)
add_textbox(slide,
Inches(0.3), Inches(1.68), W - Inches(0.6), Inches(0.46),
"Nature's Gift — A Mother's Superpower for Lifelong Wellness",
font_size=13.5, bold=True, italic=True, color=WHITE,
align=PP_ALIGN.CENTER, font_name="Calibri")
# Department line
add_textbox(slide,
Inches(0.3), Inches(2.2), W - Inches(0.6), Inches(0.46),
"Dept. of PRASOOTI TANTRA EVUM STRI ROGA | Dept. of KOUMARABHRITYA",
font_size=10.5, bold=True, color=GOLD,
align=PP_ALIGN.CENTER, font_name="Calibri")
# ─────────────────────────────────────────────────────────────────────────────
# SECTION HELPER — coloured banner
# ─────────────────────────────────────────────────────────────────────────────
def section_banner(slide, x, y, w, h, title, bg_rgb, title_rgb=WHITE, icon=""):
add_rect(slide, x, y, w, h, bg_rgb, radius_emu=5000)
add_textbox(slide, x + Inches(0.08), y + Inches(0.02), w - Inches(0.16), h - Inches(0.04),
f"{icon} {title}", font_size=12.5, bold=True,
color=title_rgb, align=PP_ALIGN.CENTER, font_name="Calibri")
# ─────────────────────────────────────────────────────────────────────────────
# COLUMN LAYOUT (3 columns)
# ─────────────────────────────────────────────────────────────────────────────
col_start_y = Inches(2.72)
col_h = Inches(5.6)
pad = Inches(0.22)
lmargin = Inches(0.26)
col_w = (W - Inches(0.36) - lmargin * 2 - pad * 2) / 3
cx1 = lmargin
cx2 = lmargin + col_w + pad
cx3 = lmargin + (col_w + pad) * 2
# ── COLUMN 1: Ayurvedic Perspective ─────────────────────────────────────────
# Panel background
add_rect(slide, cx1 - Inches(0.06), col_start_y - Inches(0.1),
col_w + Inches(0.12), col_h + Inches(0.2), PALE_SAFFRON, radius_emu=8000)
section_banner(slide, cx1 - Inches(0.06), col_start_y - Inches(0.1),
col_w + Inches(0.12), Inches(0.45),
"AYURVEDIC WISDOM 🌿", SAFFRON, WHITE)
ay_lines = [
("Stanya (Breast Milk) — The Ashtama Dhatu", True, 10.5, SAFFRON),
("", False, 4, DARK_TEXT),
("In Ayurveda, breast milk (Stanya) is considered the most pure and vital\nnourishment — formed from the essence of mother's Rasa Dhatu.", False, 9.5, DARK_TEXT),
("", False, 4, DARK_TEXT),
("✦ Stri Roga Prevention", True, 10.5, DEEP_GREEN),
("Regular breastfeeding balances Vata & Kapha doshas in the Stana\n(breast) and Garbhashaya (uterus), preventing stagnation and abnormal\ngrowth (Granthi/Arbuda).", False, 9.5, DARK_TEXT),
("", False, 4, DARK_TEXT),
("✦ Uterine Involution (Garbhashaya Shodhana)", True, 10.5, DEEP_GREEN),
("Breastfeeding triggers Apana Vata (downward-moving energy) which\nstimulates uterine contraction and detoxification after delivery —\npreventing Artava Dushti (menstrual disorders).", False, 9.5, DARK_TEXT),
("", False, 4, DARK_TEXT),
("✦ Artava Shuddhi — Menstrual Purification", True, 10.5, DEEP_GREEN),
("Sustained nursing maintains natural Lactational Amenorrhoea —\nreferenced in classics as a physiological Shonita Sthambhana\n(temporary menstrual suppression) that rests and rejuvenates the\nuterus.", False, 9.5, DARK_TEXT),
("", False, 4, DARK_TEXT),
("✦ Sthana (Breast) Health", True, 10.5, DEEP_GREEN),
("Regular milk ejection prevents Stana Shotha (breast engorgement/\nmastitis). Classics recommend Snehan & Swedan of breast with\nmedicated oils (e.g., Bala Taila) to support healthy tissue.", False, 9.5, DARK_TEXT),
("", False, 4, DARK_TEXT),
("✦ Ojas & Immunity", True, 10.5, DEEP_GREEN),
("Mother who breastfeeds preserves and enhances her own Ojas\n(vital life-force), which directly correlates with hormonal balance\nand reproductive wellness.", False, 9.5, DARK_TEXT),
("", False, 4, DARK_TEXT),
("✦ Ayurvedic Galactagogues", True, 10.5, DEEP_GREEN),
("Shatavari • Vidarikanda • Jeevanti • Milk with Ashwagandha —\nnourish Rasa Dhatu and boost milk production while strengthening\nreproductive organs.", False, 9.5, DARK_TEXT),
("", False, 4, DARK_TEXT),
("✦ Classical References", True, 10, MAROON),
("Charaka Samhita (Sharirsthana 8/47)\nSushruta Samhita (Uttaratantra 10)\nAshtanga Hridayam (Uttarasthana 2)", False, 9, MAROON),
]
add_multiline_textbox(slide,
cx1, col_start_y + Inches(0.42), col_w, col_h - Inches(0.42),
ay_lines, font_size=9.5, font_name="Calibri",
margin_l=Inches(0.05), margin_t=Inches(0.05))
# ── COLUMN 2: Modern Medical Evidence ───────────────────────────────────────
add_rect(slide, cx2 - Inches(0.06), col_start_y - Inches(0.1),
col_w + Inches(0.12), col_h + Inches(0.2), PALE_TEAL, radius_emu=8000)
section_banner(slide, cx2 - Inches(0.06), col_start_y - Inches(0.1),
col_w + Inches(0.12), Inches(0.45),
"MODERN MEDICAL EVIDENCE 🔬", TEAL, WHITE)
mod_lines = [
("Breastfeeding Reduces Risk of:", True, 10.5, TEAL),
("", False, 4, DARK_TEXT),
("🔷 Breast Cancer", True, 10.5, TEAL),
("Every 12 months of breastfeeding reduces breast cancer risk by\n~4.3%. It lowers lifetime exposure to oestrogen, which drives\nhormone-receptor-positive tumours.", False, 9.5, DARK_TEXT),
("", False, 4, DARK_TEXT),
("🔷 Ovarian Cancer", True, 10.5, TEAL),
("Breastfeeding suppresses ovulation. More months of nursing =\nfewer ovulatory cycles = less risk of ovarian epithelial damage.\nRisk reduces by ~8% per year of breastfeeding.", False, 9.5, DARK_TEXT),
("", False, 4, DARK_TEXT),
("🔷 Endometrial (Uterine) Cancer", True, 10.5, TEAL),
("Lactation reduces total lifetime oestrogen exposure, decreasing\nendometrial proliferation and cancer risk by up to 11%\n(WHO meta-analysis data).", False, 9.5, DARK_TEXT),
("", False, 4, DARK_TEXT),
("🔷 Uterine Fibroids (Leiomyoma)", True, 10.5, TEAL),
("Lactational amenorrhoea lowers circulating oestrogen and\nprogesterone, reducing fibroid growth stimulus — leading to\nsmaller fibroid burden in breastfeeding mothers.", False, 9.5, DARK_TEXT),
("", False, 4, DARK_TEXT),
("🔷 Endometriosis", True, 10.5, TEAL),
("Breastfeeding-induced anovulation reduces retrograde menstruation,\none key mechanism in endometriosis. Studies show reduced\nendometriosis lesion activity during lactation.", False, 9.5, DARK_TEXT),
("", False, 4, DARK_TEXT),
("🔷 Polycystic Ovarian Syndrome (PCOS)", True, 10.5, TEAL),
("Breastfeeding improves insulin sensitivity and lowers androgens —\nkey factors in PCOS. Mothers who breastfeed show better\nmetabolic recovery postpartum.", False, 9.5, DARK_TEXT),
("", False, 4, DARK_TEXT),
("🔷 Postpartum Haemorrhage & Uterine Health", True, 10.5, TEAL),
("Oxytocin released during suckling causes uterine contractions,\nreducing PPH risk and accelerating uterine involution to\npre-pregnancy size.", False, 9.5, DARK_TEXT),
("", False, 4, DARK_TEXT),
("🔷 Osteoporosis & Bone Health", True, 10.5, TEAL),
("Though bone density temporarily decreases during lactation,\npost-weaning rebound is superior in breastfeeding mothers,\nresulting in stronger bones and lower hip fracture risk later.", False, 9.5, DARK_TEXT),
]
add_multiline_textbox(slide,
cx2, col_start_y + Inches(0.42), col_w, col_h - Inches(0.42),
mod_lines, font_size=9.5, font_name="Calibri",
margin_l=Inches(0.05), margin_t=Inches(0.05))
# ── COLUMN 3: Benefits for Baby + Key Messages ──────────────────────────────
add_rect(slide, cx3 - Inches(0.06), col_start_y - Inches(0.1),
col_w + Inches(0.12), col_h + Inches(0.2), PALE_GREEN, radius_emu=8000)
section_banner(slide, cx3 - Inches(0.06), col_start_y - Inches(0.1),
col_w + Inches(0.12), Inches(0.45),
"BABY'S HEALTH & HORMONES 👶", DEEP_GREEN, WHITE)
baby_lines = [
("Benefits for the Baby (Koumarabhritya)", True, 10.5, DEEP_GREEN),
("", False, 4, DARK_TEXT),
("✅ Complete Nutrition", True, 10.5, DEEP_GREEN),
("Breast milk is species-specific — perfectly tailored with proteins,\nlactose, healthy fats, vitamins and live immune cells (IgA, lactoferrin,\nlysozyme) for the infant.", False, 9.5, DARK_TEXT),
("", False, 4, DARK_TEXT),
("✅ Brain Development", True, 10.5, DEEP_GREEN),
("DHA & ARA in breast milk directly build neural connections.\nBreastfed babies show higher IQ scores and better cognitive\noutcomes in multiple studies.", False, 9.5, DARK_TEXT),
("", False, 4, DARK_TEXT),
("✅ Gut Microbiome", True, 10.5, DEEP_GREEN),
("Human Milk Oligosaccharides (HMOs) selectively feed beneficial\ngut bacteria (Bifidobacterium), protecting the child against\ndiarrhoea, colic, and bowel disease.", False, 9.5, DARK_TEXT),
("", False, 4, DARK_TEXT),
("✅ Protection from Infections", True, 10.5, DEEP_GREEN),
("Colostrum — the first yellow milk — is packed with antibodies.\nBreastfed babies have 50–70% lower risk of ear infections,\npneumonia, and sepsis.", False, 9.5, DARK_TEXT),
("", False, 4, DARK_TEXT),
("✅ Lower Risk of SIDS", True, 10.5, DEEP_GREEN),
("Breastfeeding reduces the risk of Sudden Infant Death Syndrome\n(SIDS) by up to 50% (AAP, WHO).", False, 9.5, DARK_TEXT),
("", False, 4, DARK_TEXT),
("✅ Reduced Obesity & Diabetes Risk", True, 10.5, DEEP_GREEN),
("Breastfed children show lower rates of childhood obesity, Type-2\ndiabetes, and cardiovascular disease in adult life.", False, 9.5, DARK_TEXT),
("", False, 4, DARK_TEXT),
("✅ Hormonal Balance (Ayurvedic View)", True, 10.5, DEEP_GREEN),
("In Koumarabhritya, Stanya is described as Jeevana (life-giving)\nand Bala-vardhana (strength-building) — the basis for Ashtavidha\nPariksha (eight-fold assessment) of healthy infant.", False, 9.5, DARK_TEXT),
]
add_multiline_textbox(slide,
cx3, col_start_y + Inches(0.42), col_w, col_h - Inches(0.42),
baby_lines, font_size=9.5, font_name="Calibri",
margin_l=Inches(0.05), margin_t=Inches(0.05))
# ─────────────────────────────────────────────────────────────────────────────
# WHO GUIDELINES BANNER (mid-section)
# ─────────────────────────────────────────────────────────────────────────────
who_y = col_start_y + col_h + Inches(0.18)
add_rect(slide, Inches(0.26), who_y, W - Inches(0.52), Inches(0.96), DEEP_GREEN, radius_emu=7000)
add_textbox(slide,
Inches(0.34), who_y + Inches(0.04), W - Inches(0.68), Inches(0.38),
"WHO / UNICEF RECOMMENDATION",
font_size=13, bold=True, color=GOLD, align=PP_ALIGN.CENTER, font_name="Calibri")
add_textbox(slide,
Inches(0.34), who_y + Inches(0.38), W - Inches(0.68), Inches(0.52),
"\"Initiate breastfeeding within 1 hour of birth • Exclusive breastfeeding for 6 months • Continue with complementary foods up to 2 years and beyond\"",
font_size=10.5, bold=False, italic=True, color=WHITE, align=PP_ALIGN.CENTER, font_name="Calibri")
# ─────────────────────────────────────────────────────────────────────────────
# QUICK FACTS ROW (4 boxes)
# ─────────────────────────────────────────────────────────────────────────────
qf_y = who_y + Inches(1.08)
box_w = (W - Inches(0.52) - Inches(0.12)*3) / 4
box_h = Inches(1.32)
qf_colors = [SAFFRON, TEAL, DEEP_GREEN, MAROON]
qf_data = [
("4.3%", "Reduction in breast cancer risk\nper year of breastfeeding"),
("8%", "Reduction in ovarian cancer\nrisk per year of nursing"),
("50%", "Fewer SIDS cases in\nexclusively breastfed babies"),
("2 yrs", "WHO recommends breastfeeding\nfor at least 2 years"),
]
for i, (stat, desc) in enumerate(qf_data):
bx = Inches(0.26) + i * (box_w + Inches(0.12))
add_rect(slide, bx, qf_y, box_w, box_h, qf_colors[i], radius_emu=9000)
# stat number
add_textbox(slide, bx + Inches(0.06), qf_y + Inches(0.06),
box_w - Inches(0.12), Inches(0.58),
stat, font_size=26, bold=True, color=WHITE,
align=PP_ALIGN.CENTER, font_name="Calibri")
# description
add_textbox(slide, bx + Inches(0.06), qf_y + Inches(0.6),
box_w - Inches(0.12), Inches(0.64),
desc, font_size=9.5, bold=False, color=WHITE,
align=PP_ALIGN.CENTER, font_name="Calibri", wrap=True)
# ─────────────────────────────────────────────────────────────────────────────
# HORMONAL MECHANISM SECTION
# ─────────────────────────────────────────────────────────────────────────────
hm_y = qf_y + box_h + Inches(0.16)
hm_h = Inches(2.8)
hm_panel_w = (W - Inches(0.52) - Inches(0.12)) / 2
# Left — Hormones during breastfeeding
add_rect(slide, Inches(0.26), hm_y, hm_panel_w, hm_h, PALE_PINK, radius_emu=7000)
section_banner(slide, Inches(0.26), hm_y, hm_panel_w, Inches(0.44),
"HOW BREASTFEEDING PROTECTS — HORMONES ⚗️", MAROON, WHITE)
horm_lines = [
("Oxytocin", True, 10.5, MAROON),
("Released during suckling → contracts uterus → prevents PPH →\nreduces endometrial cancer risk. Also reduces stress & promotes\nmaternal mental health.", False, 9.5, DARK_TEXT),
("", False, 3, DARK_TEXT),
("Prolactin", True, 10.5, MAROON),
("Suppresses GnRH → reduced FSH/LH → anovulation →\nlactational amenorrhoea → less oestrogen exposure → lower\nbreast, ovarian, and endometrial cancer risk.", False, 9.5, DARK_TEXT),
("", False, 3, DARK_TEXT),
("Oestrogen (reduced)", True, 10.5, MAROON),
("Low oestrogen during breastfeeding = rest period for\nreproductive organs. Protects endometrium and breast tissue\nfrom oestrogen-driven pathological changes.", False, 9.5, DARK_TEXT),
("", False, 3, DARK_TEXT),
("Insulin & Metabolic Reset", True, 10.5, MAROON),
("Lactation burns ~500 extra calories/day. Improves insulin\nsensitivity. Helps reverse gestational diabetes and reduces\nlifetime risk of Type-2 diabetes in mother.", False, 9.5, DARK_TEXT),
]
add_multiline_textbox(slide,
Inches(0.34), hm_y + Inches(0.48), hm_panel_w - Inches(0.16), hm_h - Inches(0.52),
horm_lines, font_size=9.5, font_name="Calibri",
margin_l=Inches(0.04), margin_t=Inches(0.04))
# Right — Practical guidance
pr_x = Inches(0.26) + hm_panel_w + Inches(0.12)
add_rect(slide, pr_x, hm_y, hm_panel_w, hm_h, RGBColor(0xE8, 0xEA, 0xF6), radius_emu=7000)
section_banner(slide, pr_x, hm_y, hm_panel_w, Inches(0.44),
"PRACTICAL TIPS FOR EVERY MOTHER 🤱", RGBColor(0x28, 0x3A, 0x8C), WHITE)
tip_lines = [
("Start Early", True, 10.5, RGBColor(0x28, 0x3A, 0x8C)),
("Put baby to breast within 1 hour of birth. Colostrum = liquid gold.\nDo not discard it — it is the baby's first vaccine.", False, 9.5, DARK_TEXT),
("", False, 3, DARK_TEXT),
("Correct Latch Matters", True, 10.5, RGBColor(0x28, 0x3A, 0x8C)),
("Ensure the baby takes the whole areola, not just the nipple.\nProper latch prevents cracked nipples, mastitis and\nensures adequate milk transfer.", False, 9.5, DARK_TEXT),
("", False, 3, DARK_TEXT),
("Feed on Demand", True, 10.5, RGBColor(0x28, 0x3A, 0x8C)),
("8–12 times per day in early weeks. More feeding = more milk.\nDo not restrict timing — follow baby's hunger cues.", False, 9.5, DARK_TEXT),
("", False, 3, DARK_TEXT),
("Ayurvedic Diet for Mother", True, 10.5, RGBColor(0x28, 0x3A, 0x8C)),
("Warm Shatavari milk • Methi (fenugreek) laddoo • Ajwain water\n• Dry fruit laddoo • Ghee with meals — nourish Rasa Dhatu\nand promote healthy Stanya production.", False, 9.5, DARK_TEXT),
("", False, 3, DARK_TEXT),
("When to Seek Help", True, 10.5, RGBColor(0x28, 0x3A, 0x8C)),
("Persistent pain, fever, hard lump in breast, poor infant weight\ngain — consult your Stri Roga specialist immediately.", False, 9.5, DARK_TEXT),
]
add_multiline_textbox(slide,
pr_x + Inches(0.08), hm_y + Inches(0.48), hm_panel_w - Inches(0.16), hm_h - Inches(0.52),
tip_lines, font_size=9.5, font_name="Calibri",
margin_l=Inches(0.04), margin_t=Inches(0.04))
# ─────────────────────────────────────────────────────────────────────────────
# MYTHS VS FACTS ROW
# ─────────────────────────────────────────────────────────────────────────────
myth_y = hm_y + hm_h + Inches(0.16)
myth_h = Inches(1.52)
add_rect(slide, Inches(0.26), myth_y, W - Inches(0.52), myth_h, RGBColor(0xFFF9C4), radius_emu=7000)
section_banner(slide, Inches(0.26), myth_y, W - Inches(0.52), Inches(0.42),
"COMMON MYTHS vs FACTS ❓", GOLD, DARK_TEXT)
myths = [
("MYTH: Breastfeeding spoils the breast shape.",
"FACT: Pregnancy changes breast shape — not breastfeeding.\nProper support bra and good nutrition preserve breast health."),
("MYTH: Small breasts produce less milk.",
"FACT: Milk production depends on demand, not breast size.\nFrequent feeding = adequate supply for every mother."),
("MYTH: Breastfeeding during periods is harmful.",
"FACT: Safe to breastfeed during menstruation. Milk taste\nmay change slightly but is nutritionally complete."),
("MYTH: Formula is equal to breast milk.",
"FACT: Breast milk has 200+ bioactive compounds, live\nimmune cells & hormones — impossible to replicate in formula."),
]
myth_col_w = (W - Inches(0.52) - Inches(0.12)*3) / 4
for i, (myth, fact) in enumerate(myths):
mx = Inches(0.34) + i * (myth_col_w + Inches(0.1))
add_multiline_textbox(slide,
mx, myth_y + Inches(0.46), myth_col_w, myth_h - Inches(0.5),
[(myth, True, 9, MAROON), ("", False, 3, DARK_TEXT), (fact, False, 9, DARK_TEXT)],
font_size=9, font_name="Calibri",
margin_l=Inches(0.04), margin_t=Inches(0.02))
# ─────────────────────────────────────────────────────────────────────────────
# REMEMBER BOX + FOOTER
# ─────────────────────────────────────────────────────────────────────────────
rem_y = myth_y + myth_h + Inches(0.14)
add_rect(slide, Inches(0.26), rem_y, W - Inches(0.52), Inches(0.6), SAFFRON, radius_emu=7000)
add_textbox(slide,
Inches(0.34), rem_y + Inches(0.05), W - Inches(0.68), Inches(0.5),
"🌼 REMEMBER 🌼 Every drop of breast milk is a shield — for your baby today, and a gift to your own health tomorrow. Breastfeed with confidence!",
font_size=11, bold=True, color=WHITE, align=PP_ALIGN.CENTER,
italic=True, font_name="Calibri")
# Footer bar
footer_y = H - Inches(0.56)
add_rect(slide, Inches(0.18), footer_y, W - Inches(0.36), Inches(0.38), DEEP_GREEN)
add_textbox(slide,
Inches(0.26), footer_y + Inches(0.02), W - Inches(0.52), Inches(0.34),
"Dept. of Prasooti Tantra Evum Stri Roga | Dept. of Koumarabhritya • International Breastfeeding Week 2026 • 1 – 7 August 2026",
font_size=9.5, bold=False, color=GOLD, align=PP_ALIGN.CENTER, font_name="Calibri")
# ─────────────────────────────────────────────────────────────────────────────
# SAVE
# ─────────────────────────────────────────────────────────────────────────────
out_path = "/tmp/workspace/breastfeeding-poster/Breastfeeding_Gynae_Health_Poster_2026.pptx"
buf = BytesIO()
prs.save(buf)
with open(out_path, "wb") as f:
f.write(buf.getvalue())
print(f"Saved: {out_path}")
cd /tmp/workspace/breastfeeding-poster && python create_poster.py 2>&1
~/breastfeeding-poster/create_poster.py
Successfully replaced 1 instance(s) of the string in '/tmp/workspace/breastfeeding-poster/create_poster.py'
cd /tmp/workspace/breastfeeding-poster && python create_poster.py 2>&1
grep -n "RGBColor(0x[0-9A-F]\{6\})" /tmp/workspace/breastfeeding-poster/create_poster.py 2>/dev/null || grep -n "RGBColor(0x" /tmp/workspace/breastfeeding-poster/create_poster.py | grep -v ", 0x"
~/breastfeeding-poster/create_poster.py
Successfully replaced 1 instance(s) of the string in '/tmp/workspace/breastfeeding-poster/create_poster.py'
cd /tmp/workspace/breastfeeding-poster && python create_poster.py 2>&1
ls -lh /tmp/workspace/breastfeeding-poster/
Breastfeeding Gynae Health Poster 2026
Presentation · PPTX
| Column | Colour | Content |
|---|---|---|
| 🌿 Ayurvedic Wisdom | Saffron panel | Stanya as Ashtama Dhatu, Garbhashaya Shodhana, Artava Shuddhi, Ojas preservation, Galactagogues (Shatavari, Vidarikanda), Classical references (Charaka, Sushruta, AH) |
| 🔬 Modern Medical Evidence | Teal panel | Breast cancer (-4.3%/yr), Ovarian cancer (-8%/yr), Endometrial cancer, Fibroids, Endometriosis, PCOS, PPH prevention, Bone health |
| 👶 Baby's Health (Koumarabhritya) | Green panel | Colostrum, Brain DHA/ARA, Gut microbiome (HMOs), SIDS risk (-50%), Obesity/diabetes protection, Ayurvedic Jeevana & Bala-vardhana |
Create poster
A detailed, beautifully designed A3 portrait medical awareness poster titled "BREASTFEEDING & FUTURE GYNAECOLOGICAL HEALTH" for International Breastfeeding Week 2026 (August 1-7). Layout: Deep forest green border with saffron orange accent stripes. Warm cream background. TOP HEADER: Deep green banner with gold text "🌸 INTERNATIONAL BREASTFEEDING WEEK 2026 🌸", below it large white bold title "BREASTFEEDING & FUTURE GYNAECOLOGICAL HEALTH", then a saffron stripe with white italic text "Nature's Gift — A Mother's Superpower for Lifelong Wellness", then gold text "Dept. of PRASOOTI TANTRA EVUM STRI ROGA | Dept. of KOUMARABHRITYA". THREE COLUMNS below header: LEFT COLUMN (pale saffron/orange background, saffron header): "AYURVEDIC WISDOM 🌿" - covering Stanya (breast milk as Ashtama Dhatu), Garbhashaya Shodhana (uterine involution), Artava Shuddhi, Ojas preservation, galactagogues like Shatavari and Vidarikanda, classical text references. MIDDLE COLUMN (pale teal background, teal header): "MODERN MEDICAL EVIDENCE 🔬" - showing reduction in breast cancer (4.3%/year), ovarian cancer (8%/year), endometrial cancer, fibroids, endometriosis, PCOS, postpartum haemorrhage prevention, bone health. RIGHT COLUMN (pale green background, green header): "BABY'S HEALTH & HORMONES 👶" - colostrum benefits, brain development (DHA/ARA), gut microbiome, SIDS reduction 50%, Koumarabhritya Ayurvedic perspective. MIDDLE SECTION: WHO/UNICEF dark green recommendation banner in gold: "Initiate within 1 hour • Exclusive 6 months • Continue up to 2 years". FOUR STAT BOXES in a row: saffron "4.3% breast cancer risk reduction", teal "8% ovarian cancer risk reduction", green "50% fewer SIDS cases", maroon "2 years WHO recommended duration". TWO PANELS: Pink panel "HOW BREASTFEEDING PROTECTS — HORMONES" with oxytocin, prolactin, oestrogen suppression info. Indigo panel "PRACTICAL TIPS" with correct latch, demand feeding, Ayurvedic diet tips. YELLOW MYTHS vs FACTS strip with 4 common myths busted. SAFFRON footer banner: "Every drop of breast milk is a shield — for your baby today, a gift to your own health tomorrow." Deep green footer bar with gold text showing both department names and event dates. Style: Professional medical poster, vibrant colours, readable fonts, balanced layout, icons and emojis, suitable for hospital/college display.

Breastfeeding Gynae Health Poster 2026
Presentation · PPTX