GemBox.Presentation is a .NET component that enables you to read, write, convert, and print presentation files (PPTX, PPT, and PPSX) from .NET applications.
With GemBox.Presentation you get a fast and reliable component that’s easy to use and doesn't depend on Microsoft PowerPoint. It requires only .NET and it’s much faster than Microsoft Office Automation!
- Read PPT and PPTX presentations.
- Create or write and convert to PPT, PPTX, PDF, XPS, and image formats (SVG, PNG, JPEG, GIF, BMP, TIFF, WMP).
- View presentations in Azure Functions, Blazor, ASP.NET Core, ASP.NET, MAUI, and [WPF]((https://www.gemboxsoftware.com/presentation/examples/powerpoint-xpsdocument-wpf/1701) applications.
- Process presentations on Windows, Linux, macOS, Android, and iOS operating systems.
- Print presentations.
- Protect, encrypt, and digitally sign presentations.
- Get, create, or edit master slides, layout slides, slides, master notes slide, and notes slides.
- Get, create, or edit drawings like text boxes, connectors, pictures, tables, charts, and media (audio and video).
- Get, create, or edit text in shapes and table cells specified through paragraphs, runs, fields, and line breaks.
- Get, create, or edit hyperlinks, comments, placeholders, headers, and footers.
- Get, create, or edit shape, table, text box, paragraph, and character formatting.
- Get, create or edit table styles.
- Get and set built-in and custom presentation properties.
- Load HTML content into presentations.
- Access or modify slide size, slide transition, slide show, macros, and more.
- Specify fonts location when exporting to PDF, XPS, or image formats.
- Preserve unsupported presentation content elements and properties when reading a presentation.
- Medium trust support.
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.
You can download GemBox.Presentation from NuGet 📦 or from Downloads 🛠️.