aspose-slides / Aspose.Slides-for-.NET

Aspose.Slides for .NET examples, plugins and showcase projects
https://products.aspose.com/slides/net
MIT License
55 stars 29 forks source link

Nuget Nuget GitHub

PowerPoint File Manipulation API

Aspose.Slides for .NET is a cross-platform API that helps in developing applications with the ability to create, manipulate, inspect or convert Microsoft PowerPoint and OpenOffice presentation files without any dependency.

Directory Description
Demos Source code for live demos hosted at https://products.aspose.app/slides/family.
Examples A collection of .NET examples that help you learn the product features.
Plugins Visual Studio Plugins related to Aspose.Slides for .NET.

Presentation Processing Features

Read & Write Presentations

Microsoft PowerPoint: PPT, PPTX, PPS, POT, PPSX, PPTM, PPSM, POTX, POTM\ OpenOffice: ODP, OTP

Save Presentations As

Fixed Layout: PDF, PDF/A, XPS\ Image: JPEG, PNG, BMP, TIFF, GIF, SVG\ Web: HTML

Platform Independence

Aspose.Slides for .NET can be used to build any type of a 32-bit or 64-bit .NET application including ASP.NET, WCF & WinForms as well as via COM Interop while using diverse programming languages including C++, VBScript & classic ASP. The package provides assemblies to be used with Mono on various flavors of Linux, .NET Core, Xamarin.Android & Xamarin.Mac.

Get Started with Aspose.Slides for .NET

Let's give Aspose.Slides for .NET a try! Simply execute Install-Package Aspose.Slides.NET from Package Manager Console in Visual Studio to fetch the NuGet package. If you already have Aspose.Slides for .NET and want to upgrade the version, please execute Update-Package Aspose.Slides.NET to get the latest version.

Create a PPTX Presentation from Scratch

// instantiate a Presentation object that represents a presentation file
using (Presentation presentation = new Presentation())
{
    // get the first slide
    ISlide slide = presentation.Slides[0];

    // add an autoshape of type line
    slide.Shapes.AddAutoShape(ShapeType.Line, 50, 150, 300, 0);
    presentation.Save(dir + "output.pptx", SaveFormat.Pptx);
}

Convert Specific Slides to PDF Format

// instantiate a Presentation object that represents a presentation file
using (Presentation presentation = new Presentation(dir + "template.pptx"))
{
    // setting array of slides positions
    int[] slides = { 1, 3 };
    // save the presentation to PDF
    presentation.Save(dir + "output.pdf", slides, SaveFormat.Pdf);
}

Home | Product Page | Docs | Demos | API Reference | Examples | Blog | Search | Free Support | Temporary License