Syncfusion® PowerPoint library is feature-rich and high-performance .NET PowerPoint library that allows you to create, manipulate and convert PowerPoint documents (PPTX, PPTM, POTX and POTM).
$ dotnet add package Syncfusion.Presentation.NETThe Syncfusion .NET PowerPoint library (Essential Presentation) allows you to add advanced PowerPoint Presentations processing functionalities to any .NET application and does not require Microsoft PowerPoint application to be installed in the machine. It is a non-UI component that provides a full-fledged document instance model similar to the Microsoft Office COM libraries to iterate with the PowerPoint presentation elements explicitly and perform necessary manipulation. Using this library, you can create, read, edit and convert PowerPoint presentation programmatically.
You can fetch the Syncfusion .NET PowerPoint library NuGet by simply running Install-Package Syncfusion.Presentation.NET from the Package Manager Console in Visual Studio.
You can also try some code examples of common use cases from our GitHub Repository.
The following code example illustrates how to create a PowerPoint Presentation.
//Creates a new instance of PowerPoint presentation.
using (IPresentation pptxDoc = Presentation.Create())
{
//Adds a slide to the PowerPoint Presentation.
ISlide firstSlide = pptxDoc.Slides.Add(SlideLayoutType.Blank);
//Adds a textbox in a slide by specifying its position and size.
IShape textShape = firstSlide.AddTextBox(100, 75, 756, 200);
//Adds a new paragraph with text.
textShape.TextBody.AddParagraph("Hello World");
//Creates an instance of memory stream.
using (MemoryStream stream = new MemoryStream())
{
//Saves the Presentation to stream.
pptxDoc.Save(stream);
}
}
The following code example illustrates how to manipulate the PowerPoint Presentation.
//Loads or opens a PowerPoint Presentation.
using (FileStream inputStream = new FileStream("Template.pptx", FileMode.Open))
{
//Opens an existing Presentation from stream.
using (IPresentation pptxDoc = Presentation.Open(inputStream))
{
//To-Do some manipulation.
//To-Do some manipulation.
//Creates an instance of memory stream.
using (MemoryStream stream = new MemoryStream())
{
//Saves the Presentation to stream.
pptxDoc.Save(stream);
}
}
}
This is a commercial product and requires a paid license for possession or use. Syncfusion’s licensed software, including this component, is subject to the terms and conditions of Syncfusion's EULA. You can purchase a licnense here or start a free 30-day trial here.
Founded in 2001 and headquartered in Research Triangle Park, N.C., Syncfusion has more than 26,000+ customers and more than 1 million users, including large financial institutions, Fortune 500 companies, and global IT consultancies.
Today, we provide 1600+ components and frameworks for web (Blazor, ASP.NET Core, ASP.NET MVC, ASP.NET WebForms, JavaScript, Angular, React, Vue, and Flutter), mobile (Xamarin, Flutter, UWP, and JavaScript), and desktop development (WinForms, WPF, WinUI, Flutter and UWP). We provide ready-to-deploy enterprise software for dashboards, reports, data integration, and big data processing. Many customers have saved millions in licensing fees by deploying our software.
sales@syncfusion.com | www.syncfusion.com | Toll Free: 1-888-9 DOTNET
© Copyright 2021 Syncfusion, Inc. All Rights Reserved. The Syncfusion Essential Studio license and copyright applies to this distribution.