GemBox.Presentation is a .NET component that enables developers to read, write and convert presentation files from their .NET applications
GemBox.Presentation (gembox-presentation) is a .NET component that enables developers to read, write, and convert presentation files from their .NET applications.
GemBox.Presentation Free is free of charge while GemBox.Presentation Professional is a commercial version licensed per developer. Server deployment is royalty-free.
Support
Read | Read & Write | Write |
---|---|---|
PPT, POT | PPTX, PPSX, POTX, PPTM, PPSM, POTM | PDF, PDF/A |
XPS | ||
PNG, JPG, GIF, BMP, TIFF |
Hello World
C#
// Create a new presentation.
PresentationDocument presentation = new PresentationDocument();
// Create a new slide.
Slide slide = presentation.Slides.AddNew(SlideLayoutType.Custom);
// Create a new textbox.
TextBox textBox = slide.Content.AddTextBox(ShapeGeometryType.Rectangle, 2, 2, 5, 4, LengthUnit.Centimeter);
// Add "Hello World" text.
textBox.AddParagraph().AddRun("Hello World");
// Save as PPTX file.
presentation.Save("Output.pptx");
VB.NET
' Create a new presentation.
Dim presentation As New PresentationDocument()
' Create a new slide.
Dim slide As Slide = presentation.Slides.AddNew(SlideLayoutType.Custom)
' Create a new textbox.
Dim textBox As TextBox = slide.Content.AddTextBox(ShapeGeometryType.Rectangle, 2, 2, 5, 4, LengthUnit.Centimeter)
' Add "Hello World" text.
textBox.AddParagraph().AddRun("Hello World")
' Save as PPTX file.
presentation.Save("Output.pptx")
Top Features
- Open and read PowerPoint file in C# and VB.NET
- Create and write PowerPoint file in C# and VB.NET
- Create PowerPoint (PPTX) or PDF file in ASP.NET Core
- Load and Save PPTX in C# and VB.NET
- Convert PowerPoint file to PDF in C# and VB.NET
- Print PowerPoint file in C# and VB.NET
- Use PowerPoint slides in C# and VB.NET
System Requirement
- .NET Framework 3.5 - 4.8
- .NET Core 3.1 (.NET 5 for Windows)
- .NET Standard 2.0 (.NET 5 for Linux, macOS, Android, iOS, …)
Installation
You can download GemBox.Presentation from BugFixes ️
Or from NuGet