Spire.Doc 11.5.6

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

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

.NET Library to Create, Manipulate & Convert Word Documents

Foo

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:

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 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. 
.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 was computed.  net481 was computed. 
MonoAndroid monoandroid is compatible. 
Xamarin.iOS xamarinios is compatible. 
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (23)

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

d15eeaf754489b51abe1c1662d926ea2074eebda

Spire.DocViewer

Spire.DocViewer, specially designed for developers, provides sevral controls for Visual Basic to enables users to realize functions to load, display, convert and print Word document from version 97-2003 to version 2010 for .NET in C# and Visual Basic easily. View Spire.DocViewer enables developers to view Word document with zoom in/out, page up/down, moving to first/last page and fitting width/page. Print Spire.DocViewer for .NET enables developers to print current page, one specified page, odd/even page or all pages of Word document. Supported Elements Spire.DocViewer for .net supports variety of elements in Word document, including text (font, style, size, color), paragraph(alignment, indent, line spcing), image, table(row height, column width, border and shading) and bookmark. Also, developers can relize Find function with Spire.DocViewer for .NET. Convert Spire.DocViewer for .NET enables to convert Word document to PDF, HTML and RTF. And conversion between different versions (.doc to .docx or .docx to .doc) is supported.

Zxs.Kernel.Dapper

d15eeaf754489b51abe1c1662d926ea2074eebda

Zxs.Kernel.Buildin

d15eeaf754489b51abe1c1662d926ea2074eebda

GitHub repositories (1)

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

Repository Stars
hanjunjun/Titan.Blog.WebAPP
ASP.NET Core WebAPI前后端分离,后端框架
Version Downloads Last updated
11.9.19 367 9/22/2023
11.8.18 4,254 8/24/2023
11.8.11 1,022 8/21/2023
11.8.2 1,747 8/7/2023
11.7.25 4,593 7/31/2023
11.7.16 5,551 7/13/2023
11.7.0 5,221 7/4/2023
11.6.1 5,087 6/9/2023
11.5.12 1,570 5/30/2023
11.5.6 8,378 5/16/2023
11.4.12 8,415 4/28/2023
11.4.0 12,277 4/10/2023
11.3.1 8,374 3/10/2023
11.2.3 13,642 2/17/2023
11.1.4 9,574 1/28/2023
11.1.0 12,232 1/6/2023
10.12.4 10,826 12/29/2022
10.11.9 8,648 11/30/2022
10.11.0 14,439 11/8/2022
10.10.4 15,540 10/17/2022
10.9.6 16,683 9/22/2022
10.9.1 5,977 9/8/2022
10.7.16 29,016 8/1/2022
10.7.0 14,771 7/12/2022
10.6.6 19,496 6/17/2022
10.5.9 6,359 5/27/2022
10.4.6 33,673 4/28/2022
10.4.5 6,690 4/20/2022
10.3.5 20,892 3/18/2022
10.3.3 12,810 3/10/2022
10.2.11 19,858 2/24/2022
10.1.14 43,869 1/30/2022
10.1.0 8,072 1/25/2022
9.12.12 21,166 12/29/2021
9.12.7 23,515 12/17/2021
9.12.3 3,656 12/14/2021
9.11.6 19,022 11/12/2021
9.11.5 3,208 11/11/2021
9.10.9 12,109 10/27/2021
9.10.0 21,918 10/9/2021
9.9.6 17,580 9/17/2021
9.8.6 21,721 8/23/2021
9.7.14 13,343 7/27/2021
9.7.3 20,581 7/7/2021
9.6.10 14,103 6/11/2021
9.6.2 5,808 6/10/2021
9.4.18 18,968 4/30/2021
9.4.12 10,595 4/19/2021
9.4.1 12,874 4/2/2021
9.3.6 13,019 3/17/2021
9.3.3 3,874 3/12/2021
9.2.0 81,686 2/3/2021
9.1.0 8,814 1/18/2021
8.12.14 13,482 12/28/2020
8.12.9 4,737 12/18/2020
8.11.15 11,718 11/26/2020
8.11.9 9,439 11/18/2020
8.10.4 21,501 10/22/2020
8.10.0 7,646 10/13/2020
8.9.6 11,371 9/11/2020
8.8.2 10,553 8/17/2020
8.7.5 29,239 7/13/2020
8.6.3 34,050 6/5/2020
8.5.9 6,966 5/28/2020
8.4.10 14,298 4/29/2020
8.4.7 142,386 4/22/2020
8.4.2 4,400 4/15/2020
8.4.0 1,944 4/14/2020
8.3.15 8,238 3/25/2020
8.3.8 10,125 3/13/2020
8.3.0 3,890 3/3/2020
8.2.9 9,588 2/14/2020
8.2.4 5,464 2/12/2020
8.1.10 14,376 1/22/2020
8.1.4 3,045 1/16/2020
8.1.0 6,840 1/10/2020
7.12.23 19,634 12/20/2019
7.12.21 2,854 12/18/2019
7.11.1 29,800 11/6/2019
7.10.0 6,395 10/31/2019
7.9.9 14,654 9/29/2019
7.9.0 15,078 9/6/2019
7.8.12 7,889 8/22/2019
7.8.8 2,942 8/19/2019
7.7.23 19,920 7/31/2019
7.7.0 9,259 7/22/2019
7.6.16 8,482 7/1/2019
7.6.5 9,609 6/12/2019
7.5.9 8,168 5/17/2019
7.5.1 436,782 5/2/2019
7.4.14 2,317 4/26/2019
7.4.11 3,639 4/19/2019
7.4.6 3,817 4/11/2019
7.3.10 16,001 3/22/2019
7.3.3 12,784 3/8/2019
7.2.4 5,426 2/22/2019
7.1.19 50,370 2/2/2019
7.1.10 5,494 1/22/2019
7.1.0 31,915 1/3/2019
6.12.8 5,577 12/27/2018
6.12.4 3,303 12/14/2018
6.12.1 5,495 12/4/2018
6.11.9 16,121 11/22/2018
6.11.7 6,540 11/15/2018
6.11.5 4,012 11/12/2018
6.11.2 4,275 11/7/2018
6.10.6 5,467 10/26/2018
6.9.13 6,128 9/30/2018
6.9.11 12,062 9/25/2018
6.8.16 21,617 8/31/2018
6.8.11 4,050 8/22/2018
6.8.6 8,821 8/14/2018