from pptx import Presentation
from pptx.dml.color import RGBColor
prs=Presentation()
title_slide_layout=prs.slide_layouts[0]
slide=prs.slides.add_slide(title_slide_layout)
background=slide.background
fill = background.fill
fill.solid()
fill.fore_color.rgb = RGBColor(59, 89, 152)
title=slide.shapes.title
subtitle=slide.placeholders[1]
title.text="title"
subtitle.text="Subtitle"
prs.save('mynewone.pptx')
我厌倦了改变,改变了背景,但是我努力工作
答案 0 :(得分:3)
您需要处理形状的"[object Object],[object Object],[object Object]"
属性,并将该字体格式应用于document.getElementById("coordinatesjs").value = JSON.stringify(positions);
。根据{{3}},我认为这应该可行:
text_frame