Skip to content

FileFormat.Slides for .NET - C# library for manipulating PowerPoint presentations. Empower your application with efficient tools for managing PowerPoint content.

License

Notifications You must be signed in to change notification settings

fileformat-slides/FileFormat.Slides-for-.NET

Repository files navigation

FileFormat.Slides for .NET | Free C# PowerPoint API

FileFormat.Slides for .NET - An open-source library offered by openize.com that can help beginners create, open, and edit PowerPoint files.

Contents

.NET PowerPoint API for Presentation Manipulation

FileFormat.Slides is a freely available .NET library crafted for MS PowerPoint presentation manipulation and management. Whether you're a novice or an expert, this API is straightforward to set up and utilize. Its strength lies in the powerful OpenXML engine, which serves as the backbone of FileFormat.Slides. By incorporating this C# library, you can easily generate and control PowerPoint files programmatically. Once integrated, you won't require any additional third-party tools to automate the creation or modification of PowerPoint presentations.

System Requirements

  • .NET Core 3.1 and above

Quick Start

Install-Package FileFormat.Slides

// Open a presentation
Presentation presentation = Presentation.Open("sample.pptx");

// Get 1st slides
Slide slide = presentation.GetSlides()[0];

// Get text shape count
var shapeCount = slide.TextShapes.Count;

How to?

Create Presentation:

// Create instance of presentation
Presentation presentation = Presentation.Create("sample.pptx");
//Create instances of text shapes and set their texts.
TextShape shape = new TextShape();
shape.Text = "Title: Here is my first title From FF";
TextShape shape2 = new TextShape();
shape2.Text = "Body : Here is my first title From FF";    
// Set yAxis of 2nd text shape
shape2.Y = 25.9;
// Create slide
Slide slide = new Slide();
// Add text shapes.
slide.AddTextShapes(shape);
slide.AddTextShapes(shape2);               
// Adding slides
presentation.AppendSlide(slide); 
// Save presentation
presentation.Save();

Find More

More Samples: Check out the examples for sample code snippets to begin with.

Usage:

  • Explore the documentation.
  • Read out API References to get In-depth information about available classes and methods.
  • Openize offers you to find comprehensive blog posts on commonly trending PowerPoint presentation manipulation topics

Contribution: If you find issues or have improvements, feel free to open a GitHub issue or submit a pull request. License: This project is licensed under the MIT License - see the LICENSE file for details.