一张PPT有文字和图片。我想将图片设置为底层/将文本设置为顶层并查看文本内容。怎么做?
text_frame = shape.text_frame
text_frame.vertical_anchor = MSO_ANCHOR.TOP
text_frame = shape.text_frame
text_frame.vertical_anchor = MSO_ANCHOR.TOP
text_frame.paragraphs[0].runs[0].text = "text"
left = Inches(5)
height = Inches(5.5)
pic = slide.shapes.add_picture(img_path, left, top, height=height)
在 PPT 中让图片在底层,文本在顶层。