原創|行業資訊|編輯:何躍|2022-01-14 11:05:12.517|閱讀 265 次
概述:本次更新中的調整,希望正在使用Aspose.Slides類庫的朋友注意調整程序中的相應代碼。
# 界面/圖表報表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
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屬性來代替。
本站文章除注明轉載外,均為本站原創或翻譯。歡迎任何形式的轉載,但請務必注明出處、不得修改原文相關鏈接,如果存在內容上的異議請郵件反饋至chenjj@fc6vip.cn