FreeSpire.Presentation
7.8.0
dotnet add package FreeSpire.Presentation --version 7.8.0
NuGet\Install-Package FreeSpire.Presentation -Version 7.8.0
<PackageReference Include="FreeSpire.Presentation" Version="7.8.0" />
paket add FreeSpire.Presentation --version 7.8.0
#r "nuget: FreeSpire.Presentation, 7.8.0"
// Install FreeSpire.Presentation as a Cake Addin
#addin nuget:?package=FreeSpire.Presentation&version=7.8.0
// Install FreeSpire.Presentation as a Cake Tool
#tool nuget:?package=FreeSpire.Presentation&version=7.8.0
.NET Library for Processing PowerPoint Documents
Product Page | Tutorials | Demo | Examples | Forum | Customized Demo | Temporary License
Free Spire.Presentation for .NET is a Community Edition of the Spire.Presentation for .NET, which is a totally free PowerPoint API for commercial and personal use.
As a standalone C#/VB.NET library, developers can use Free Spire.Presentation for .NET to create, read, write, modify, convert and print PowerPoint documents from any .NET (C#, VB.NET, ASP.NET, .NET Core) platform.
Standalone .NET API
Free 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
Free 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
Free 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 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 (1)
Showing the top 1 NuGet packages that depend on FreeSpire.Presentation:
Package | Downloads |
---|---|
ZhongzhouShaonian.Ziyuan.Latex
针对 Latex语法进行处理,项目仅支持.net 4.8 |
GitHub repositories
This package is not used by any popular GitHub repositories.
Free Spire.Presentation 7.2.0