FileFormat.Slides for .NET
Simplify Presentation Creation & Customization with .NET API
Create & Customize Presentations Easily with FileFormat.Slides, an Open-Source .NET API. Simplify Slides Generation & Automation with this Lightweight Library.
What is FileFormat.Slides for .NET?
FileFormat.Slides for .NET offers a simple, easy and user-friendly experience, making it the ideal choice for those looking to work with Microsoft PowerPoint presentation using an open-source API. This open-source .NET API has been thoughtfully designed to simplify the process of creating and customizing PowerPoint presentation. With this intuitive C# library, you can now easily generate and manipulate presentations with just a few lines of code.
The installation process of this lightweight solution is seamless and offers a stack of features to cater to all your presentation requirements. FileFormat.Slides for .NET leverage the OpenXML SDK, a technology endorsed by Microsoft. FileFormat.Slides for .NET serves as a convenient wrapper that simplifies the utilization of its advanced capabilities.
In consideration of developers, this open-source .NET library makes automating PowerPoint presentation creation and editing a breeze with just a few lines of code. You can enhance its capabilities using the OpenXML SDK library. Handling FileFormat.Slides for .NET is easy, thanks to its user-friendly design. The library comes with intelligent features like adding sheets, text, opening existing presentations in a stream, applying formatting to the entire presentation or specific text shape, adding images to presentations, and much more.
Explore our GitHub repository to contribute, suggest improvements, and enhance this Open Source API: https://github.com/fileformat-slides/FileFormat.Slides-for-.NET
Getting Started with FileFormat.Slides for .NET
The recommended way to install FileFormat.Slides for .NET is using NuGet. Please use the following command for a smooth installation.
Install FileFormat.Slides for .NET via NuGet
NuGet\Install-Package FileFormat.Slides
You can also download it directly from GitHub.Creating an PowerPoint presentation Programmatically
FileFormat.Slides for .NET provides developers with a flexible and powerful tool for automating the creation of PowerPoint presentations and diagrams. Software developers can create new presentation from the scratch, add slide to it, insert images inside it, add text inside it and many more. The following code snippet creates an empty PowerPoint presentation programmatically.
How to Create a PowerPoint presentation via .NET API?
// Create an object of the Presentation class.
Presentation presentation = Presentation.Create("presentation.pptx");
//Perform necessary operations.
//...
// Call the Save method to save the PowerPoint file onto the disk.
presentation.Save();
Insert Text into Presentation Programmatically
FileFormat.Slides for .NET makes it easy for software developers to insert text into a presentation slide inside .NET application. The main focus of this library is to provide developers with the ability to programmatically create presentations and work with various PowerPoint elements such as slides, text, images, shapes, and diagrams. The following code snippet shows how developers can inserts a text into presentation programmatically.
How to Insert a Text into Presentation via .NET API?
// Create a new PowerPoint presentation at the specified file path
Presentation presentation = Presentation.Create("D:\\AsposeSampleResults\\test2.pptx");
// Create a text shape for the title and set its properties
TextShape shape = new TextShape();
shape.Text = "Title: Here is my first title From FF";
shape.TextColor = "980078";
shape.FontFamily = "Baguet Script";
// Create the slide and add the text shape to it
Slide slide = new Slide();
slide.AddTextShapes(shape);
// Append the slide to the presentation
presentation.AppendSlide(slide);
// Save the modified presentation
presentation.Save();