Universal.Common.Formats.Pptx 2.3.0

dotnet add package Universal.Common.Formats.Pptx --version 2.3.0
                    
NuGet\Install-Package Universal.Common.Formats.Pptx -Version 2.3.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Universal.Common.Formats.Pptx" Version="2.3.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Universal.Common.Formats.Pptx" Version="2.3.0" />
                    
Directory.Packages.props
<PackageReference Include="Universal.Common.Formats.Pptx" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Universal.Common.Formats.Pptx --version 2.3.0
                    
#r "nuget: Universal.Common.Formats.Pptx, 2.3.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Universal.Common.Formats.Pptx@2.3.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Universal.Common.Formats.Pptx&version=2.3.0
                    
Install as a Cake Addin
#tool nuget:?package=Universal.Common.Formats.Pptx&version=2.3.0
                    
Install as a Cake Tool

Universal.Common.Formats.Pptx

Reads, creates, and edits PowerPoint .pptx presentations.

Quick start

using Universal.Common.Formats.Pptx;
using Universal.Common.Formats.Pptx.Authoring;

using Presentation presentation = Presentation.Open("deck.pptx");
string? text = presentation.Slides[0].Shapes[0].TextFrame?.PlainText;

Author and format tables

using Universal.Common.Formats.Pptx.Authoring;

PresentationDocument document = PresentationDocument.Create();
PresentationSlideReference slide = document.AddSlide();
document.ApplyBatch(working =>
{
    PresentationShapeReference table = working.AddTable(slide, 2, 2,
        leftPoints: 30, topPoints: 30, widthPoints: 480, heightPoints: 100,
        values: new[] { new[] { "Source", "Description" }, new[] { "Evidence", "A readable, wider description column." } },
        name: "Sources",
        options: new PresentationTableOptions
        {
            ColumnWidthsPoints = new[] { 100d, 380d },
            RowHeightsPoints = new[] { 30d, 70d },
            FirstRow = true, BandedRows = false
        });
    PresentationTableCellReference cell = working.GetTableCells(table)[0];
    working.SetTableCellOptions(cell, new PresentationTableCellOptions
    {
        MarginLeftPoints = 6, MarginRightPoints = 6,
        MarginTopPoints = 4, MarginBottomPoints = 4,
        Fill = new PresentationColor(30, 60, 90),
        VerticalAlignment = PresentationTableCellVerticalAlignment.Center,
        TextStyle = new PresentationTextStyle { Bold = true, FontSizePoints = 14, Color = new PresentationColor(255, 255, 255) },
        BottomBorder = new PresentationTableBorder { WidthPoints = 1, Color = new PresentationColor(0, 0, 0) }
    });
});
document.Save("sources.pptx");

Grid dimensions, frame bounds, margins, font sizes and border widths use points. Supply one positive column width per grid column and one positive row height per physical row. Supplied grid dimensions override the corresponding frame dimension: frame width/height becomes the exact sum of serialized column/row dimensions. Legacy AddTable calls without options retain equal columns and rows within the requested bounds.

SetTableOptions changes an existing table's geometry, first/last-row/column flags, banding, or style GUID. SetTableCellOptions patches cell margins, vertical and paragraph alignment, fill, border edges and text style. It retains existing text, fields, hyperlinks, relationships, merge metadata and unspecified properties. Font patches apply to existing runs and fields as well as paragraph defaults. GetTableCells uses physical row/cell indices; continuation cells remain separate physical references when a table contains merges. These operations preserve merges but do not create or remove them.

Null options retain existing properties. Explicit false and zero margins remain explicit values. Each supplied border describes a complete direct edge, while unspecified edges remain intact. NoFill suppresses inherited fill; ClearFill removes the direct override. A border with Hidden = true suppresses that edge; Clear = true removes its override. Fill/clear/no-fill and border hidden/clear choices are mutually exclusive. ClearStyle removes the direct table style; it cannot be combined with StyleId.

ApplyBatch commits all package parts only when its callback succeeds. Perform edits on the supplied working document; exceptions leave the original unchanged. Persistent slide/shape IDs continue to identify the same elements after a successful batch. Save the original document after success.

Table geometry is explicit. Row heights are not an automatic text-fitting request, and the authoring API does not paginate slides or promise PowerPoint autofit behavior. Use Universal.Common.Formats.Pptx.Rendering for visual checks. The authoring methods preserve unspecified package content rather than rebuilding tables to apply formatting.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Universal.Common.Formats.Pptx:

Package Downloads
Universal.Common.Formats.Pptx.Rendering

Lays out and renders PPTX slides.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.3.0 148 11/20/2026
2.2.0 711 8/22/2026
2.0.1 383 8/21/2026
2.0.0 152 8/21/2026
1.0.2 169 8/21/2026
1.0.1 181 8/21/2026
1.0.0 196 8/21/2026

Add native table column widths and row heights, preservation-safe table/cell formatting patches, and atomic authoring batches.