
# https://www.globalsino.com/ICs/
# Prepare the first slide of presentation: if there is such a file, then the file will be over-written;
# if there is no such a file, then a new file will be created.

from pptx import Presentation
from pptx.dml.color import RGBColor
import os


Path0 = r"C:\0Python\images"

MyPresentation = Presentation()

def firstSlide(title1_textA, title1_textB, JobDescription, author):
    Slide1_Register = MyPresentation.slide_layouts[0]
    Slide1 = MyPresentation.slides.add_slide(Slide1_Register)
    title1  = Slide1.shapes.title
    Subtitle1 = Slide1.placeholders[1]
    # Insert title with tests
    title1.text = "Experimental Results of " + title1_textA + " " + title1_textB
    Subtitle1.text = author
    
    MyPresentation.save(os.path.join(Path0, f"{title1_textA}_{title1_textB}_{JobDescription}.pptx"))






