本次更新中的调整,希望正在使用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进行处理,非常感谢!