Aspose.Slides v21.12更新,包含PPT摘要优化、低代码API转化、接口删除

本次更新中的调整,希望正在使用Aspose.Slides类库的朋友注意调整程序中的相应代码。

Aspose.Slides v21.12C#和Java支持摘要放大和分段放大,以.NET代码为例:

using (Presentation pres = new Presentation()){   //Adds a new slide to the presentation   ISlide slide = pres.Slides.AddEmptySlide(pres.Slides[0].LayoutSlide);   slide.Background.FillFormat.FillType = FillType.Solid;   slide.Background.FillFormat.SolidFillColor.Color = Color.Brown;   slide.Background.Type = BackgroundType.OwnBackground;   // Adds a new section to the presentation   pres.Sections.AddSection("Section 1", slide);   //Adds a new slide to the presentation   slide = pres.Slides.AddEmptySlide(pres.Slides[0].LayoutSlide);   slide.Background.FillFormat.FillType = FillType.Solid;   slide.Background.FillFormat.SolidFillColor.Color = Color.Aqua;   slide.Background.Type = BackgroundType.OwnBackground;   // Adds a new section to the presentation   pres.Sections.AddSection("Section 2", slide);   //Adds a new slide to the presentation   slide = pres.Slides.AddEmptySlide(pres.Slides[0].LayoutSlide);   slide.Background.FillFormat.FillType = FillType.Solid;   slide.Background.FillFormat.SolidFillColor.Color = Color.Chartreuse;   slide.Background.Type = BackgroundType.OwnBackground;   // Adds a new section to the presentation   pres.Sections.AddSection("Section 3", slide);   //Adds a new slide to the presentation   slide = pres.Slides.AddEmptySlide(pres.Slides[0].LayoutSlide);   slide.Background.FillFormat.FillType = FillType.Solid;   slide.Background.FillFormat.SolidFillColor.Color = Color.DarkGreen;   slide.Background.Type = BackgroundType.OwnBackground;   // Adds a new section to the presentation   pres.Sections.AddSection("Section 4", slide);   // Adds a SectionZoomFrame object   ISectionZoomFrame sectionZoomFrame = pres.Slides[0].Shapes.AddSectionZoomFrame(20, 20, 300, 200, pres.Sections[1]);   // Adds SummaryZoomFrame object   ISummaryZoomFrame summaryZoomFrame = pres.Slides[0].Shapes.AddSummaryZoomFrame(350, 50, 300, 200);   // Saves the presentation   pres.Save("presentation.pptx", SaveFormat.Pptx);}

PPT转PDF低代码API优化,以C#代码为例,一行解决功能:

Convert.AutoByExtension("pres.pptx", "pres.pdf")

ObjectData、EmbeddedFileExtension和EmbeddedFileData已从IOleObjectFrame接口中删除

过时的属性ObjectData、EmbeddedFileExtension和EmbeddedFileData已经从IOleObjectFrame接口中移除。使用IOleObjectFrame接口的SetEmbeddedData方法和EmbeddedData属性来代替。

标签:

来源:慧都

声明:本站部分文章及图片转载于互联网,内容版权归原作者所有,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!

上一篇 2022年1月11日
下一篇 2022年1月11日

相关推荐

发表回复

登录后才能评论