Spire.Presentation
8.2.0
dotnet add package Spire.Presentation --version 8.2.0
NuGet\Install-Package Spire.Presentation -Version 8.2.0
<PackageReference Include="Spire.Presentation" Version="8.2.0" />
paket add Spire.Presentation --version 8.2.0
#r "nuget: Spire.Presentation, 8.2.0"
// Install Spire.Presentation as a Cake Addin
#addin nuget:?package=Spire.Presentation&version=8.2.0
// Install Spire.Presentation as a Cake Tool
#tool nuget:?package=Spire.Presentation&version=8.2.0
.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();
Product | Versions |
---|---|
.NET | net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows |
.NET Core | netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1 |
.NET Framework | net40 net403 net45 net451 net452 net46 net461 net462 net463 net47 net471 net472 net48 net481 |
MonoAndroid | monoandroid |
Xamarin.iOS | xamarinios |
-
.NETCoreApp 2.0
- System.Drawing.Common (>= 4.5.0)
- System.Security.Cryptography.Xml (>= 4.5.0)
- System.Text.Encoding.CodePages (>= 4.5.0)
-
.NETFramework 2.0
- No dependencies.
-
.NETFramework 4.0
- No dependencies.
-
MonoAndroid 0.0
- SkiaSharp (>= 1.68.0)
- System.Security.Cryptography.Xml (>= 4.6.0)
- System.Text.Encoding.CodePages (>= 4.6.0)
-
net6.0
- System.Drawing.Common (>= 6.0.0)
- System.Security.Cryptography.Xml (>= 6.0.0)
- System.Text.Encoding.CodePages (>= 6.0.0)
-
Xamarin.iOS 0.0
- SkiaSharp (>= 1.68.0)
- System.Security.Cryptography.Xml (>= 4.6.0)
- System.Text.Encoding.CodePages (>= 4.6.0)
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 |
---|---|---|
8.2.0 | 892 | 2/7/2023 |
8.1.1 | 491 | 1/16/2023 |
7.12.1 | 531 | 12/21/2022 |
7.11.1 | 2,042 | 11/15/2022 |
7.10.2 | 484 | 10/28/2022 |
7.9.2 | 2,646 | 9/27/2022 |
7.8.0 | 6,691 | 8/10/2022 |
7.7.5 | 1,599 | 7/14/2022 |
7.7.1 | 837 | 7/6/2022 |
7.6.2 | 2,247 | 7/1/2022 |
7.5.3 | 7,131 | 5/27/2022 |
7.4.5 | 3,412 | 4/20/2022 |
7.3.1 | 3,133 | 3/15/2022 |
7.2.5 | 1,012 | 2/28/2022 |
7.1.0 | 3,195 | 1/21/2022 |
6.12.4 | 15,129 | 12/24/2021 |
6.11.5 | 1,015 | 12/1/2021 |
6.11.4 | 4,525 | 11/25/2021 |
6.11.2 | 1,064 | 11/12/2021 |
6.10.2 | 1,252 | 10/27/2021 |
6.9.5 | 3,356 | 9/30/2021 |
6.9.2 | 569 | 9/17/2021 |
6.8.4 | 1,006 | 8/20/2021 |
6.7.2 | 1,455 | 7/13/2021 |
6.6.6 | 1,546 | 6/29/2021 |
6.6.0 | 4,052 | 6/9/2021 |
6.4.5 | 5,541 | 4/30/2021 |
6.4.1 | 1,478 | 4/2/2021 |
6.2.2 | 3,584 | 2/8/2021 |
6.1.4 | 797 | 1/20/2021 |
6.1.0 | 2,970 | 1/12/2021 |
5.11.4 | 5,770 | 11/30/2020 |
5.11.2 | 687 | 11/24/2020 |
5.9.5 | 3,519 | 9/24/2020 |
5.8.5 | 6,264 | 8/27/2020 |
5.8.1 | 1,910 | 8/7/2020 |
5.7.2 | 1,634 | 7/16/2020 |
5.6.1 | 4,819 | 6/4/2020 |
5.4.2 | 1,976 | 4/13/2020 |
5.3.6 | 1,895 | 3/20/2020 |
5.2.1 | 1,555 | 2/26/2020 |
5.1.0 | 3,702 | 1/15/2020 |
4.12.13 | 1,917 | 12/18/2019 |
4.11.0 | 2,238 | 11/29/2019 |
4.10.2 | 2,551 | 10/17/2019 |
4.9.5 | 9,271 | 9/27/2019 |
4.8.15 | 3,576 | 8/30/2019 |
4.8.5 | 1,315 | 8/12/2019 |
4.7.5 | 22,703 | 7/22/2019 |
4.7.0 | 2,938 | 7/5/2019 |
4.6.5 | 2,257 | 7/1/2019 |
4.6.1 | 3,125 | 6/12/2019 |
4.5.9 | 1,362 | 5/28/2019 |
4.5.5 | 881 | 5/17/2019 |
4.4.10 | 980 | 4/26/2019 |
4.4.3 | 2,021 | 4/16/2019 |
4.3.19 | 1,512 | 3/29/2019 |
4.3.14 | 2,265 | 3/22/2019 |
4.3.9 | 2,977 | 3/15/2019 |
4.3.3 | 3,125 | 3/6/2019 |
4.3.0 | 1,142 | 3/1/2019 |
4.2.1 | 1,066 | 2/14/2019 |
4.1.16 | 26,644 | 1/28/2019 |
4.1.0 | 2,206 | 1/10/2019 |
3.12.9 | 2,106 | 12/28/2018 |
3.12.4 | 1,342 | 12/24/2018 |
3.11.1 | 3,283 | 11/9/2018 |
3.10.4 | 2,685 | 10/19/2018 |
3.10.1 | 1,079 | 10/11/2018 |
3.9.8 | 3,129 | 9/29/2018 |
3.9.5 | 12,073 | 9/21/2018 |
3.8.4 | 1,457 | 8/17/2018 |
3.8.0 | 1,135 | 8/2/2018 |
3.7.5 | 1,150 | 7/30/2018 |
3.6.9 | 4,037 | 6/28/2018 |
3.6.1 | 2,893 | 6/11/2018 |