Spire.Doc
12.11.7
dotnet add package Spire.Doc --version 12.11.7
NuGet\Install-Package Spire.Doc -Version 12.11.7
<PackageReference Include="Spire.Doc" Version="12.11.7" />
paket add Spire.Doc --version 12.11.7
#r "nuget: Spire.Doc, 12.11.7"
// Install Spire.Doc as a Cake Addin #addin nuget:?package=Spire.Doc&version=12.11.7 // Install Spire.Doc as a Cake Tool #tool nuget:?package=Spire.Doc&version=12.11.7
.NET Library to Create, Manipulate & Convert Word Documents
Product Page | Documentation | Examples | Forum | Temporary License | Customized Demo
Spire.Doc for .NET is a professional Word API that enables developers to create, read, manipulate, convert and print Word documents in .NET (C#, VB.NET, ASP.NET, .NET Core, .NET Standard and Xamarin) applications without installing Microsoft Office.
By using this multi-functional API, developers are able to perform various Word document processing tasks with ease, like inserting image, hyperlink, digital signature, bookmark, watermark, setting header & footer, creating table, setting background image, adding footnote & endnote and many more.
Standalone .NET API
Spire.Doc for .NET is a totally independent API, it doesn't require Microsoft Office or any other third-party libraries to be installed on system.
Support Both Old and New Word Versions
- Word 97-2003
- Word 2007
- Word 2010
- Word 2013
- Word 2016
- Word 2019
Support a Rich Set of Word Elements
Spire.Doc for .NET supports almost all Word document elements, including sections, headers, footers, footnotes, endnotes, paragraphs, lists, tables, text, fields, hyperlinks, bookmarks, watermarks, math equations, mail merge, comments, images, styles, background settings, digital signature, document printing, document settings, document encryption and decryption. Furthermore, drawing objects including shapes, textboxes, images, OLE objects and content controls are supported as well.
High Quality File Conversions
Using Spire.Doc for .NET, developers can:
- Convert Word to XML, Word to RTF, Word to TXT, Word to HTML, Word to ODT and vice versa
- Convert Word to PDF, Word to PDF/A, Word to SVG, Word to PCL, Word to PostScript, Word to XPS and Word to EPUB
- Convert Word to image (PNG, JPG, TIFF, BMP, EMF)
- Convert Word to WordXML
- Convert HTML to Word, HTML string to Word
- Convert HTML to PDF, HTML to image, HTML to XML, HTML to XPS
- Convert XML to PDF
- Convert RTF to HTML, RTF to PDF
- Convert word to markdown
- Convert markdown to word
Examples
Create a Word Document in C#
//Create a Document instance
Document doc = new Document();
//Add a section
Section section = doc.AddSection();
//Add a paragraph
Paragraph para = section.AddParagraph();
//Append text to the paragraph
para.AppendText("Hello World");
//Save the result document
doc.SaveToFile(@"C:\Users\Administrator\Desktop\Output.docx", FileFormat.Docx2013);
Convert Word to PDF, HTML and XPS in C#
//Create a Document instance
Document document = new Document();
//Load a sample document
document.LoadFromFile(@"C:\Users\Administrator\Desktop\Template.docx");
//Save to PDF
document.SaveToFile("Sample.pdf", FileFormat.PDF);
//Save to HTML
document.SaveToFile("toHTML.html", FileFormat.Html);
//Save to XPS
document.SaveToFile("Sample.xps", FileFormat.XPS);
Convert Word to Image in C#
//Create a Document instance
Document document = new Document();
//Load a sample document
document.LoadFromFile(@"C:\Users\Administrator\Desktop\Template.docx");
//Save to PNG image
for (int i = 0; i < document.PageCount; i++)
{
Image img = document.SaveToImages(i, Spire.Doc.Documents.ImageType.Metafile);
String fileName = String.Format("img-{0}.png", i);
img.Save(fileName, System.Drawing.Imaging.ImageFormat.Png);
}
Product Page | Documentation | Examples | Forum | Temporary License | Customized Demo
Product | Versions 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 is compatible. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.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. |
-
.NETCoreApp 2.0
- HarfBuzzSharp (>= 2.6.15)
- System.Drawing.Common (>= 4.5.0)
- System.Security.Cryptography.Pkcs (>= 4.5.0)
- System.Security.Cryptography.Xml (>= 4.5.0)
- System.Security.Permissions (>= 4.5.0)
- System.Text.Encoding.CodePages (>= 4.5.0)
-
.NETFramework 4.0
- No dependencies.
-
.NETFramework 4.8
- HarfBuzzSharp (>= 2.6.1.5)
- System.Buffers (>= 4.4.0)
- System.Memory (>= 4.5.3)
- System.Numerics.Vectors (>= 4.4.0)
- System.Runtime.CompilerServices.Unsafe (>= 4.5.2)
-
net6.0
- HarfBuzzSharp (>= 2.6.1.5)
- System.Drawing.Common (>= 6.0.0)
- System.Security.Cryptography.Pkcs (>= 6.0.0)
- System.Security.Cryptography.Xml (>= 6.0.0)
- System.Security.Permissions (>= 6.0.0)
- System.Text.Encoding.CodePages (>= 6.0.0)
NuGet packages (22)
Showing the top 5 NuGet packages that depend on Spire.Doc:
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 |
|
Zxs.Kernel.Core
18f61d170f8995cebb6bf4ef17b100567e490b11 |
|
Zxs.Kernel.Dapper
18f61d170f8995cebb6bf4ef17b100567e490b11 |
|
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; |
|
Zxs.Kernel.Buildin
18f61d170f8995cebb6bf4ef17b100567e490b11 |
GitHub repositories (2)
Showing the top 2 popular GitHub repositories that depend on Spire.Doc:
Repository | Stars |
---|---|
MayDay-wpf/AIBotPublic
AIBot PRO 是一个基于.NET 6 的 AI聚合客户端 to C 弱 to B 可以集成众多AI产品(ChatGPT,Gemini,Claude,文心一言,通义千问,讯飞星火),无感切换对话,支持知识库、插件开发、AI流程引擎(workflow)、以及开放平台对外输出定制化的特色AI API
|
|
hanjunjun/Titan.Blog.WebAPP
ASP.NET Core WebAPI前后端分离,后端框架
|
Version | Downloads | Last updated |
---|---|---|
12.11.7 | 55 | 11/21/2024 |
12.10.13 | 5,626 | 10/24/2024 |
12.10.5 | 4,029 | 10/11/2024 |
12.8.12 | 19,527 | 8/26/2024 |
12.8.2 | 6,799 | 8/7/2024 |
12.7.3 | 12,475 | 7/5/2024 |
12.6.10 | 11,092 | 6/24/2024 |
12.6.1 | 6,964 | 6/6/2024 |
12.5.5 | 16,643 | 5/27/2024 |
12.4.7 | 17,160 | 4/23/2024 |
12.3.12 | 35,117 | 3/28/2024 |
12.2.10 | 12,820 | 2/29/2024 |
12.2.1 | 37,875 | 2/4/2024 |
12.1.17 | 4,980 | 1/31/2024 |
12.1.5 | 11,499 | 1/16/2024 |
11.12.4 | 26,444 | 12/21/2023 |
11.12.2 | 6,808 | 12/13/2023 |
11.11.8 | 28,042 | 11/24/2023 |
11.11.0 | 17,376 | 11/7/2023 |
11.10.7 | 12,883 | 10/23/2023 |
11.10.3 | 4,293 | 10/13/2023 |
11.9.19 | 16,877 | 9/22/2023 |
11.8.18 | 21,346 | 8/24/2023 |
11.8.11 | 9,182 | 8/21/2023 |
11.8.2 | 4,993 | 8/7/2023 |
11.7.25 | 16,817 | 7/31/2023 |
11.7.16 | 11,975 | 7/13/2023 |
11.7.0 | 13,625 | 7/4/2023 |
11.6.1 | 20,041 | 6/9/2023 |
11.5.12 | 3,874 | 5/30/2023 |
11.5.6 | 20,720 | 5/16/2023 |
11.4.12 | 16,013 | 4/28/2023 |
11.4.0 | 34,328 | 4/10/2023 |
11.3.1 | 19,125 | 3/10/2023 |
11.2.3 | 23,546 | 2/17/2023 |
11.1.4 | 17,661 | 1/28/2023 |
11.1.0 | 36,520 | 1/6/2023 |
10.12.4 | 38,161 | 12/29/2022 |
10.11.9 | 13,601 | 11/30/2022 |
10.11.0 | 39,661 | 11/8/2022 |
10.10.4 | 28,858 | 10/17/2022 |
10.9.6 | 27,631 | 9/22/2022 |
10.9.1 | 12,032 | 9/8/2022 |
10.7.16 | 44,022 | 8/1/2022 |
10.7.0 | 23,793 | 7/12/2022 |
10.6.6 | 28,294 | 6/17/2022 |
10.5.9 | 9,804 | 5/27/2022 |
10.4.6 | 129,086 | 4/28/2022 |
10.4.5 | 11,210 | 4/20/2022 |
10.3.5 | 31,307 | 3/18/2022 |
10.3.3 | 18,832 | 3/10/2022 |
10.2.11 | 42,676 | 2/24/2022 |
10.1.14 | 65,857 | 1/30/2022 |
10.1.0 | 15,924 | 1/25/2022 |
9.12.12 | 34,310 | 12/29/2021 |
9.12.7 | 33,569 | 12/17/2021 |
9.12.3 | 7,489 | 12/14/2021 |
9.11.6 | 24,388 | 11/12/2021 |
9.11.5 | 6,457 | 11/11/2021 |
9.10.9 | 17,358 | 10/27/2021 |
9.10.0 | 30,698 | 10/9/2021 |
9.9.6 | 24,151 | 9/17/2021 |
9.8.6 | 29,245 | 8/23/2021 |
9.7.14 | 18,039 | 7/27/2021 |
9.7.3 | 29,363 | 7/7/2021 |
9.6.10 | 24,983 | 6/11/2021 |
9.6.2 | 8,737 | 6/10/2021 |
9.4.18 | 29,413 | 4/30/2021 |
9.4.12 | 19,925 | 4/19/2021 |
9.4.1 | 16,807 | 4/2/2021 |
9.3.6 | 23,971 | 3/17/2021 |
9.3.3 | 6,955 | 3/12/2021 |
9.2.0 | 106,075 | 2/3/2021 |
9.1.0 | 14,399 | 1/18/2021 |
8.12.14 | 17,949 | 12/28/2020 |
8.12.9 | 7,493 | 12/18/2020 |
8.11.15 | 16,468 | 11/26/2020 |
8.11.9 | 12,358 | 11/18/2020 |
8.10.4 | 35,404 | 10/22/2020 |
8.10.0 | 10,714 | 10/13/2020 |
8.9.6 | 18,595 | 9/11/2020 |
8.8.2 | 15,923 | 8/17/2020 |
8.7.5 | 42,098 | 7/13/2020 |
8.6.3 | 50,078 | 6/5/2020 |
8.5.9 | 11,175 | 5/28/2020 |
8.4.10 | 18,419 | 4/29/2020 |
8.4.7 | 158,216 | 4/22/2020 |
8.4.2 | 7,431 | 4/15/2020 |
8.4.0 | 4,736 | 4/14/2020 |
8.3.15 | 11,620 | 3/25/2020 |
8.3.8 | 17,111 | 3/13/2020 |
8.3.0 | 6,554 | 3/3/2020 |
8.2.9 | 13,466 | 2/14/2020 |
8.2.4 | 10,887 | 2/12/2020 |
8.1.10 | 24,539 | 1/22/2020 |
8.1.4 | 5,467 | 1/16/2020 |
8.1.0 | 14,305 | 1/10/2020 |
7.12.23 | 27,473 | 12/20/2019 |
7.12.21 | 5,222 | 12/18/2019 |
7.11.1 | 42,014 | 11/6/2019 |
7.10.0 | 10,216 | 10/31/2019 |
7.9.9 | 27,287 | 9/29/2019 |
7.9.0 | 23,804 | 9/6/2019 |
7.8.12 | 20,467 | 8/22/2019 |
7.8.8 | 6,867 | 8/19/2019 |
7.7.23 | 35,527 | 7/31/2019 |
7.7.0 | 13,467 | 7/22/2019 |
7.6.16 | 12,403 | 7/1/2019 |
7.6.5 | 13,478 | 6/12/2019 |
7.5.9 | 13,205 | 5/17/2019 |
7.5.1 | 1,166,331 | 5/2/2019 |
7.4.14 | 5,554 | 4/26/2019 |
7.4.11 | 6,908 | 4/19/2019 |
7.4.6 | 7,568 | 4/11/2019 |
7.3.10 | 22,894 | 3/22/2019 |
7.3.3 | 15,556 | 3/8/2019 |
7.2.4 | 8,478 | 2/22/2019 |
7.1.19 | 76,825 | 2/2/2019 |
7.1.10 | 9,543 | 1/22/2019 |
7.1.0 | 44,395 | 1/3/2019 |
6.12.8 | 8,655 | 12/27/2018 |
6.12.4 | 6,520 | 12/14/2018 |
6.12.1 | 8,466 | 12/4/2018 |
6.11.9 | 26,867 | 11/22/2018 |
6.11.7 | 9,407 | 11/15/2018 |
6.11.5 | 7,018 | 11/12/2018 |
6.11.2 | 13,909 | 11/7/2018 |
6.10.6 | 8,560 | 10/26/2018 |
6.9.13 | 10,307 | 9/30/2018 |
6.9.11 | 15,923 | 9/25/2018 |
6.8.16 | 25,631 | 8/31/2018 |
6.8.11 | 6,539 | 8/22/2018 |
6.8.6 | 15,232 | 8/14/2018 |