Spire.Presentation 9.8.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package Spire.Presentation --version 9.8.1                
NuGet\Install-Package Spire.Presentation -Version 9.8.1                
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="Spire.Presentation" Version="9.8.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Spire.Presentation --version 9.8.1                
#r "nuget: Spire.Presentation, 9.8.1"                
#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.
// Install Spire.Presentation as a Cake Addin
#addin nuget:?package=Spire.Presentation&version=9.8.1

// Install Spire.Presentation as a Cake Tool
#tool nuget:?package=Spire.Presentation&version=9.8.1                

.NET Library for Processing PowerPoint Documents

Foo

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, .NET 6.0, .NET7.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, Markdown 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/XPS/HTML in C#

            //create PPT document
            Presentation presentation = new Presentation();
            //load PPT file from disk
            presentation.LoadFromFile("sample.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("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();
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  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. 
.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 net40 is compatible.  net403 was computed.  net45 was computed.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 is compatible.  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 (4)

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

Package Downloads
Spire.Office

Spire.Office for .NET is a combination of Enterprise-Level Office .NET components offered by E-iceblue. It includes Spire.Doc, Spire XLS, Spire.Presentation, Spire.PDF, Spire.DataExport, Spire.PDFViewer, Spire.DocViewer, Spire.Email and Spire.BarCode. Spire.Office contains the most up-to-date versions of the above .NET components. From Spire.Office 3.10.1, Spire.Office supports to work on .NET Core,.NET Standard, Xamarin. With Spire.Office for .NET, developers can create a wide range of applications. It enables developers to open, create, modify, convert, print, View MS Word, Excel, PowerPoint and PDF documents. Furthermore, it allows users to export data to popular files such as MS Word/Excel/RTF/Access, PowerPoint, PDF, XPS, HTML, XML, Text, CSV, DBF, Clipboard, SYLK, etc. As an independent Office .NET component, Spire.Office doesn't need Microsoft Office to be installed on neither the development nor target systems. In addition, it is a better alternative to MS Office Automation in terms of security, stability, scalability, speed, price and features. Spire.Office for .NET can be linked into any type of a 32-bit or 64-bit .NET application including ASP.NET, Web Services and WinForms for .NET Framework version 2.0 to 4.5, .NET Core, .NET standard 2.0

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);

Spire.OfficeViewer

Spire.OfficeViewer for .NET is a powerful Office Viewer component for .NET. It enables developers to load Word, Excel, Presentation slides and PDF files and view them from code. As a standalone .NET class library, Spire.OfficeViewer mainly focus on how to display office documents and PDF files. It enables developers/programmers to directly view and print office files and PDFs for their .NET applications. It supports to view the DOC, DOCX, DOT, XLS, XLSX, XLSB, ODS, PPT, PPTX, PPS, PPSX and PDF file formats. Spire.OfficeViewer is a totally independent .NET library which doesn't need to install Microsoft Office and Adobe Reader or any other 3rd party software/library on system. Main Functions Load office documents and PDF from file and view; Switch to target page Fit page; Fit width; Fit height Page down/up; Zoom in/out; Hand tool; Print;

CoreExtention

Package Description

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on Spire.Presentation:

Repository Stars
MayDay-wpf/AIBotPublic
AIBot PRO 是一个基于.NET 6 的 AI聚合客户端 to C 弱 to B 可以集成众多AI产品(ChatGPT,Gemini,Claude,文心一言,通义千问,讯飞星火),无感切换对话,支持知识库、插件开发、AI流程引擎(workflow)、以及开放平台对外输出定制化的特色AI API
Version Downloads Last updated
9.10.2 1,450 10/17/2024
9.9.2 4,036 9/20/2024
9.8.3 2,442 9/3/2024
9.8.1 1,131 8/9/2024
9.7.4 2,673 7/9/2024
9.5.3 12,015 5/17/2024
9.4.5 3,385 4/28/2024
9.3.4 5,333 3/22/2024
9.2.0 18,516 2/5/2024
9.1.5 337 1/26/2024
9.1.0 352 1/17/2024
8.12.2 6,582 12/14/2023
8.11.1 1,329 11/30/2023
8.10.2 3,076 10/18/2023
8.9.4 2,293 9/27/2023
8.8.4 20,465 8/18/2023
8.7.2 1,579 7/21/2023
8.7.0 2,836 7/3/2023
8.6.0 1,136 6/5/2023
8.4.1 6,430 4/13/2023
8.3.2 3,490 3/31/2023
8.2.0 5,516 2/7/2023
8.1.1 1,610 1/16/2023
7.12.1 7,074 12/21/2022
7.11.1 11,808 11/15/2022
7.10.2 1,079 10/28/2022
7.9.2 8,638 9/27/2022
7.8.0 31,468 8/10/2022
7.7.5 2,426 7/14/2022
7.7.1 1,586 7/6/2022
7.6.2 2,895 7/1/2022
7.5.3 14,530 5/27/2022
7.4.5 4,313 4/20/2022
7.3.1 4,313 3/15/2022
7.2.5 1,769 2/28/2022
7.1.0 4,366 1/21/2022
6.12.4 29,230 12/24/2021
6.11.5 2,210 12/1/2021
6.11.4 9,815 11/25/2021
6.11.2 1,592 11/12/2021
6.10.2 2,956 10/27/2021
6.9.5 4,407 9/30/2021
6.9.2 1,047 9/17/2021
6.8.4 1,817 8/20/2021
6.7.2 2,644 7/13/2021
6.6.6 2,004 6/29/2021
6.6.0 4,710 6/9/2021
6.4.5 6,371 4/30/2021
6.4.1 2,392 4/2/2021
6.2.2 6,375 2/8/2021
6.1.4 1,325 1/20/2021
6.1.0 3,407 1/12/2021
5.11.4 7,654 11/30/2020
5.11.2 1,192 11/24/2020
5.9.5 4,122 9/24/2020
5.8.5 10,399 8/27/2020
5.8.1 2,742 8/7/2020
5.7.2 2,151 7/16/2020
5.6.1 5,792 6/4/2020
5.4.2 3,165 4/13/2020
5.3.6 2,431 3/20/2020
5.2.1 2,191 2/26/2020
5.1.0 7,686 1/15/2020
4.12.13 2,473 12/18/2019
4.11.0 3,861 11/29/2019
4.10.2 4,294 10/17/2019
4.9.5 11,674 9/27/2019
4.8.15 5,445 8/30/2019
4.8.5 1,802 8/12/2019
4.7.5 26,553 7/22/2019
4.7.0 3,542 7/5/2019
4.6.5 2,907 7/1/2019
4.6.1 7,970 6/12/2019
4.5.9 1,974 5/28/2019
4.5.5 1,457 5/17/2019
4.4.10 1,606 4/26/2019
4.4.3 2,602 4/16/2019
4.3.19 2,067 3/29/2019
4.3.14 2,775 3/22/2019
4.3.9 5,223 3/15/2019
4.3.3 4,708 3/6/2019
4.3.0 1,759 3/1/2019
4.2.1 1,680 2/14/2019
4.1.16 28,102 1/28/2019
4.1.0 2,851 1/10/2019
3.12.9 2,858 12/28/2018
3.12.4 1,920 12/24/2018
3.11.1 3,898 11/9/2018
3.10.4 3,374 10/19/2018
3.10.1 1,833 10/11/2018
3.9.8 3,981 9/29/2018
3.9.5 15,931 9/21/2018
3.8.4 2,190 8/17/2018
3.8.0 1,697 8/2/2018
3.7.5 1,786 7/30/2018
3.6.9 4,530 6/28/2018
3.6.1 3,795 6/11/2018