

# https://www.globalsino.com/ICs/
# Write text in a slide only

from pptx import Presentation
from pptx.util import Inches, Pt

prs = Presentation()

prs.slide_width = Inches(10)
prs.slide_height = Inches(7.5)

bullet_layout = prs.slide_layouts[1]
slide = prs.slides.add_slide(bullet_layout)
title_shape = slide.shapes.title
body_shape = slide.shapes.placeholders[1]
title_shape.text = "Description"
p = body_shape.text_frame.add_paragraph()
p.font.size = Pt(24)
p.text = "i) High voltage generator and acceleration tube. High voltage generator and acceleration tube. High voltage generator and acceleration tube. High voltage generator and acceleration tube."

p = body_shape.text_frame.add_paragraph()
p.font.size = Pt(24)
p = p.add_run()
p.text = "ii) Illumination lens system and deflector."

p = body_shape.text_frame.add_paragraph()
p.font.size = Pt(24)
p = p.add_run()
p.text = "iii) EDS system (optional)."

p = body_shape.text_frame.add_paragraph()
p.font.size = Pt(24)
p = p.add_run()
p.text = "iv) Specimen holder and stage. " 

p = body_shape.text_frame.add_paragraph()
p.font.size = Pt(24)
p = p.add_run()
p.text = "v) Image-forming lens system."

p = body_shape.text_frame.add_paragraph()
p.font.size = Pt(24)
p = p.add_run()
p.text = "vi) Image-forming lens system."

prs.save(r'C:\0Python\test.pptx')
