Runnable C# examples for IronPPT, a .NET library for creating, reading, and editing PPTX presentations without Microsoft PowerPoint or Office Interop.
dotnet add package IronPPTusing IronPPT;
using IronPPT.Models;
// Create a new presentation
var document = new PresentationDocument();
// Add a slide with text
var slide = new Slide();
slide.AddText("Hello from IronPPT!");
document.AddSlide(slide);
document.Save("hello.pptx");To edit an existing deck, use new PresentationDocument("existing.pptx") and access slides through the Slides collection — for example, document.Slides[0].TextBoxes[0].AddText("Updated title"). Images, shapes, and styled paragraphs follow the same pattern: construct, configure, add to a slide.
For production use, set a license key via License.LicenseKey = "YOUR-KEY". Without one, presentations include a watermark.
Each folder contains a self-contained .NET project you can open and run:
examples/— focused snippets demonstrating individual featuresget-started/— minimal first projects including license-key setuphow-to/— task-oriented guides for specific presentation operationsquickstart/— end-to-end project scaffoldstutorials/— longer walkthroughs (including theslide-elementtutorial covering text boxes, paragraphs, images, and shapes)
- Creating and loading PPTX files
- Adding slides, text boxes, and styled paragraphs
- Text styling: font family, size, color, bold, italic, underline, alignment
- Inserting images with positioning, scaling, and sizing
- Adding shapes with fill color, outline, rotation, and shape type (rectangle, triangle, ellipse, cloud, and more)
- Slide layout: size, orientation, background color
- Reading text and structural content from existing decks
- Bullet and numbered lists with custom indentation
IronPPT supports programmatic creation and editing of .pptx files. Rendering presentations to PDF or images, and slideshow playback, are not currently supported — for PDF output from a presentation, generate the PPTX with IronPPT and convert it separately.
.NET 10, 9, 8, 7, 6, 5, .NET Core 3.1, .NET Standard 2 and 2.1, and .NET Framework 4.6.2+. Windows, macOS, Linux, Docker, Azure, and AWS. See the installation docs for environment-specific notes.
- Full documentation: ironsoftware.com/csharp/ppt/docs/
- API reference: ironsoftware.com/csharp/ppt/object-reference/api/
- Issues with these examples: file directly on this repository
- Product support: support@ironsoftware.com
This repository is maintained by Iron Software. IronPPT is a commercial library — see licensing for terms and trial details.