GemBox.Presentation is a .NET component that enables you to read, write, edit, convert, and print PowerPoint presentations from your .NET applications using a straightforward API. With GemBox.Presentation, you get a fast and reliable component that's easy to use. It requires only the .NET, so you can deploy your application easily without considering other licenses. And it's up to 20 times faster than Microsoft PowerPoint automation!
$ dotnet add package GemBox.PresentationGemBox.Presentation is a .NET component that enables you to read, write, edit, convert, and print PowerPoint presentations from your .NET applications using a straightforward API.
With GemBox.Presentation, you get a fast and reliable component that's easy to use. It requires only the .NET, so you can deploy your application easily without considering other licenses. And it's up to 20 times faster than Microsoft PowerPoint automation!
You are not sure how to start working with PowerPoint presentations in .NET using GemBox.Presentation? Check the code below that shows how to create a PPTX file from scratch and write 'Hello World!' on it.
// If using Professional version, put your serial key below.
ComponentInfo.SetLicense("FREE-LIMITED-KEY");
// Create new empty presentation.
var presentation = new PresentationDocument();
// Add a new custom slide.
var slide = presentation.Slides.AddNew(SlideLayoutType.Custom);
// Add a rectangle and fill it with dark blue color.
var shape = slide.Content.AddShape(
ShapeGeometryType.RoundedRectangle, 2, 2, 8, 4, LengthUnit.Centimeter);
shape.Format.Fill.SetSolid(Color.FromName(ColorName.DarkBlue));
// Add a paragraph and some text, and set text color to white.
var run = shape.Text.AddParagraph().AddRun("Hello World!");
run.Format.Fill.SetSolid(Color.FromName(ColorName.White));
// Save the presentation as PowerPoint's PPTX file.
presentation.Save("Writing.pptx");
For more GemBox.Presentation code examples and demos, please visit our examples page.