Skip to content

nessonma/SlideDotNet

 
 

Repository files navigation

SlideDotNet

License NuGet

SlideDotNet is a fluent wrapper around Open XML SDK for the processing of PowerPoint files without Microsoft Office installed. It aims to provide an intuitive and user-friendly interface to dealing with the underlying Open XML SDK API.

Getting Started

You can quickly start work with the library by following steps listed below.

Prerequisites

  • .NET Core 2.2 or above

Installing

To install SlideDotNet, run the following command in the Package Manager Console:

PM> Install-Package SlideDotNet

Usage

// opens presentation from the file path
using var presentation = new PresentationEx(@"c:\test.pptx");

// gets the slides collection
var slides = presentation.Slides; 

// gets number of slides
var numSlides = slides.Count(); 

// gets the shapes collection of the first slide
var shapes = slides[0].Shapes;

// prints texts of shapes on the Debug console
foreach (var sp in shapes)
{
    if (sp.HasTextFrame)
    {
        Debug.WriteLine(sp.TextFrame.Text);
    }
}

To find out more, please check out the SlideDotNet wiki.

Support

If you have any problems or questions you can create an issue on this repository or contact me at theadamo86@gmail.com.

Contribution

If you want to contribute in improving this wrapper, feel free to create pull requests.

Author

Adam Shakhabovadamshakhabov

About

A lightweight .NET library for parse PowerPoint file presentations without Microsoft Office installed

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%