Spire.Presentation 6.10.2

There is a newer version of this package available.
See the version list below for details.
Install-Package Spire.Presentation -Version 6.10.2
dotnet add package Spire.Presentation --version 6.10.2
<PackageReference Include="Spire.Presentation" Version="6.10.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Spire.Presentation --version 6.10.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Spire.Presentation, 6.10.2"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Spire.Presentation as a Cake Addin
#addin nuget:?package=Spire.Presentation&version=6.10.2

// Install Spire.Presentation as a Cake Tool
#tool nuget:?package=Spire.Presentation&version=6.10.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

.NET Library for Processing PowerPoint Documents

Product Page | Tutorials | Demo | Examples | Forum | Customized Demo | Temporary License

Spire.Presentation for .NET is a professional PowerPoint compatible API that enables developers to create, read, write, modify, convert and Print PowerPoint documents on any .NET platform ( Target .NET Framework, .NET Core, .NET Standard, .NET 5.0, Xamarin & Mono Android ) without installing Microsoft Office.

As an independent PowerPoint .NET API, it supports a rich set of features such as managing text, image, shapes, tables, animations, audio and video on slides. It also supports exporting presentation slides to EMF, JPG, TIFF, PDF, XPS, SVG, HTML format etc.

Standalone .NET API

Spire.Presentation for .NET is a totally independent .NET PowerPoint API which doesn't require Microsoft PowerPoint to be installed on system.

Support PowerPoint Version

  • PPT - PowerPoint Presentation 97-2003
  • PPS - PowerPoint SlideShow 97-2003
  • PPTX - PowerPoint Presentation 2007/2010/2013/2016/2019
  • PPSX - PowerPoint SlideShow 2007, 2010

Support Rich PowerPoint Elements

Spire.Presentation for .NET supports to process a variety of PowerPoint elements, such as slide, text, image, shape, table, chart, watermark, animation, header, footer, comment, note, SmartArt, hyperlink, OLE object, audio and video.

High Quality File Conversion

Spire.Presentation for .NET allow developers to convert PowerPoint documents to other file formats such as:

  • Convert PowerPoint to PDF
  • Convert PowerPoint to Image
  • Convert PowerPoint to PPTX
  • Convert PowerPoint to XPS
  • Convert PowerPoint to SVG
  • Convert PowerPoint to HTML

Convert PowerPoint to PDF/XPS/HTML in C#

            //create PPT document
            Presentation presentation = new Presentation();
            //load PPT file from disk
            presentation.LoadFromFile("ppt.ppt");

            //save the PPT do PDF file format
            presentation.SaveToFile("ToPdf.pdf", FileFormat.PDF);
            System.Diagnostics.Process.Start("ToPdf.pdf");

            //save the PPT document to XPS file format
            ppt.SaveToFile("source.xps", FileFormat.XPS);
            System.Diagnostics.Process.Start("source.xps");

            //Save the PowerPoint document to HTML format
            ppt.SaveToFile(@"E:\Program Files\ToHtml.html", FileFormat.Html);

Convert PowerPoint to Images in C#

            //load a PPT file
            Presentation presentation = new Presentation();
            presentation.LoadFromFile("sample.pptx");

            //traverse the slides of PPT files
            for (int i = 0; i < presentation.Slides.Count; i++)
            {
                //save the slide to Image
                Image image = presentation.Slides[i].SaveAsImage();

                String fileName = String.Format("result-img-{0}.png", i);
                image.Save(fileName, System.Drawing.Imaging.ImageFormat.Png);

                //view the image
                System.Diagnostics.Process.Start(fileName);

Convert PowerPoint to SVG in C#

            //load a PPT file
            Presentation ppt = new Presentation();
            ppt.LoadFromFile(@"C:\Users\Administrator\Desktop\sample.pptx");

            Queue svgBytes = ppt.SaveToSVG();
            int len = svgBytes.Count;
            for (int i = 0; i < len; i++)
            {
                FileStream fs = new FileStream(string.Format("result" + "{0}.svg", i), FileMode.Create);
                byte[] bytes = svgBytes.Dequeue();
                fs.Write(bytes, 0, bytes.Length);
                ppt.Dispose();

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Spire.Presentation:

Package Downloads
iCom

iCom integrates a variety of specific operation classes, such as: Cookie, Items, Cache, Form, DbContext, DbDynamic, DbConn, SqlQuery, FileUtil, FileUpload, Crypto, BarCode, StringUtil, TypeConvert, SortList, DateUtil, RegexUtil, Environal, ReflectUtil, HttpClient, ImageUtil, XmlUtil, ZipPackage, WordUtil, ExcelUtil, PdfUtil, PinyinConvert, PdfToImageConverter, JsonConfig, XmlConfig, ObjectCopy, TagHelper, SkipUrlMiddleware and so on. // HttpContext Called in the ConfigureServices method services.AddContextAccessor(); // Called in the Configure method app.UseHttpContext(); // EfCore Called in the ConfigureServices method // Application Assembly var assembly = Assembly.GetExecutingAssembly(); // Register Database Models services.AddDbContext(assembly); // Auto Update Database services.AddMigrate(); // Register All Services services.AddService(assembly);

CoreExtention

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
6.11.5 0 12/1/2021
6.11.4 583 11/25/2021
6.11.2 218 11/12/2021
6.10.2 315 10/27/2021
6.9.5 685 9/30/2021
6.9.2 226 9/17/2021
6.8.4 415 8/20/2021
6.7.2 599 7/13/2021
6.6.6 321 6/29/2021
6.6.0 517 6/9/2021
6.4.5 3,990 4/30/2021
6.4.1 597 4/2/2021
6.2.2 715 2/8/2021
6.1.4 382 1/20/2021
6.1.0 2,657 1/12/2021
5.11.4 3,095 11/30/2020
5.11.2 371 11/24/2020
5.9.5 1,256 9/24/2020
5.8.5 2,325 8/27/2020
5.8.1 484 8/7/2020
5.7.2 528 7/16/2020
5.6.1 2,924 6/4/2020
5.4.2 1,044 4/13/2020
5.3.6 781 3/20/2020
5.2.1 710 2/26/2020
5.1.0 1,233 1/15/2020
4.12.13 1,104 12/18/2019
4.11.0 1,021 11/29/2019
4.10.2 1,041 10/17/2019
4.9.5 1,333 9/27/2019
4.8.15 809 8/30/2019
4.8.5 1,021 8/12/2019
4.7.5 2,485 7/22/2019
4.7.0 632 7/5/2019
4.6.5 530 7/1/2019
4.6.1 877 6/12/2019
4.5.9 564 5/28/2019
4.5.5 557 5/17/2019
4.4.10 643 4/26/2019
4.4.3 528 4/16/2019
4.3.19 616 3/29/2019
4.3.14 571 3/22/2019
4.3.9 789 3/15/2019
4.3.3 903 3/6/2019
4.3.0 805 3/1/2019
4.2.1 747 2/14/2019
4.1.16 25,779 1/28/2019
4.1.0 1,044 1/10/2019
3.12.9 1,608 12/28/2018
3.12.4 974 12/24/2018
3.11.1 1,365 11/9/2018
3.10.4 861 10/19/2018
3.10.1 702 10/11/2018
3.9.8 743 9/29/2018
3.9.5 7,853 9/21/2018
3.8.4 923 8/17/2018
3.8.0 777 8/2/2018
3.7.5 817 7/30/2018
3.6.9 1,753 6/28/2018
3.6.1 1,860 6/11/2018