Introduction

What NetCorePpt is, what it generates, and how these pages are organised.

0Namespaces used by the C# samples

using NetCorePpt;                  // PptxGen, Slide
using NetCorePpt.CoreInterfaces;   // option objects: TextProps* / ShapeProps / ImageProps / TableProps / HAlign / VAlign ...
using NetCorePpt.CoreEnums;        // ShapeType, ChartType, MediaType, ShadowType, BulletType, DashType, SCHEME_COLORS ...
using TableRow = System.Collections.Generic.List<NetCorePpt.CoreInterfaces.TableCell>;
NetCorePpt Sample Slides

๐Ÿš€ Features

NetCorePpt writes PowerPoint (.pptx) files in pure C# โ€” no Office install, no COM interop, no JavaScript runtime. Add the NuGet package and describe the deck in code.

Runs everywhere .NET runs

  • Windows, Linux and macOS โ€” desktop, server and containers
  • Console apps, ASP.NET Core services, Azure Functions, background workers
  • Compiled for net6.0, net8.0, net10.0, netstandard2.0 and netstandard2.1
  • All the major slide objects: text, tables, shapes, images, charts and media
  • Slide masters, sections, speaker notes and slide numbers
  • SVG images, online video, RTL text and scheme colors

Simple &amp; powerful

  • Create a presentation in four lines of code
  • Option objects keep the familiar names โ€” addText, addShape, addTable, defineSlideMasterโ€ฆ
  • Runnable samples in the Usage Examples section

Export your way

  • Write straight to disk with exportToFile
  • Keep the bytes in memory with exportToBytes โ€” ideal for cloud storage or an HTTP response
  • Stream with exportToStream, with optional zip compression

๐Ÿ“ฆ Installation

Sample ยท bash
dotnet add package NetCorePpt

The Installation page has the full walkthrough โ€” PackageReference, namespaces and a first presentation.

๐Ÿ“– Documentation

Quick Start Guide

A presentation is created in four steps: create the presentation, add a slide, add objects, then export. The Quick Start page walks through them in C#.