将指定的JSON对象转换为对应类型文档构建对象
名称 | 类型 | 描述性 |
sMessage系统 | JSON系统 | JSON对象转换 |
builder.CreateFile("pptx")!varoPresentation=api.GetpresentationvaroSlide=oPresentation.getSlideByIndex0oSlide.RemoveAllObjects()!varomasterssservations.GetMasters0Varomemasters获取 ThemeVar oFontScheme=omemaster.GetFontSchemesontScheme.SetFontsOFontScheme.SetSchemeNamevarjsonsetScheme.toJSONVar oFontSchemeFromJSON=api.FromJSONvaromesslideoTheme.SetFontScheme(oFontSchemeFromJSON)!varstSype =oFortSchemeFromJSON.GetClassTypevaroFinll =api.CreateSolidFillvarostroke=api.CreatestrokeVar Oshape = Api.CreateShapeoShape.SetPosition(608400, 1267200)!Shape.SetSize(300*36000,130*3600)varoccontent=oshape.getdoccontentvarodente=occontent.getEplement0oParagraph.SetJc("left")!odclips类型=+sypeoSlide.AddObject(oShape)!builder.SaveFile("pptx", "FromJSON.pptx")!builder.CloseFile();