Spire.Doc 10.9.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 10.9.6
NuGet\Install-Package Spire.Doc -Version 10.9.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="10.9.6" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Spire.Doc --version 10.9.6
#r "nuget: Spire.Doc, 10.9.6"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. 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=10.9.6

// Install Spire.Doc as a Cake Tool
#tool nuget:?package=Spire.Doc&version=10.9.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 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
MonoAndroid monoandroid
Xamarin.iOS xamarinios
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (6)

Showing the top 5 NuGet packages that depend on Spire.Doc:

Package Downloads
Zxs.Kernel.Buildin

26dfc2daf215c8e4a5917f1cdd730a18f51e4c5f

ExperimentSystem

Save Importent Data For Experiment

ExchangeInteraction

Description

Victory4Software.Utilities

Package Description

14All

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
10.11.0 2,404 11/8/2022
10.10.4 4,268 10/17/2022
10.9.6 8,211 9/22/2022
10.9.1 2,620 9/8/2022
10.7.16 8,975 8/1/2022
10.7.0 6,023 7/12/2022
10.6.6 10,722 6/17/2022
10.5.9 4,807 5/27/2022
10.4.6 16,694 4/28/2022
10.4.5 3,776 4/20/2022
10.3.5 12,137 3/18/2022
10.3.3 7,477 3/10/2022
10.2.11 9,232 2/24/2022
10.1.14 25,609 1/30/2022
10.1.0 3,357 1/25/2022
9.12.12 11,825 12/29/2021
9.12.7 10,335 12/17/2021
9.12.3 2,081 12/14/2021
9.11.6 13,708 11/12/2021
9.11.5 1,749 11/11/2021
9.10.9 8,947 10/27/2021
9.10.0 13,089 10/9/2021
9.9.6 11,635 9/17/2021
9.8.6 17,852 8/23/2021
9.7.14 10,525 7/27/2021
9.7.3 15,556 7/7/2021
9.6.10 10,130 6/11/2021
9.6.2 4,595 6/10/2021
9.4.18 14,115 4/30/2021
9.4.12 5,512 4/19/2021
9.4.1 10,413 4/2/2021
9.3.6 7,825 3/17/2021
9.3.3 2,635 3/12/2021
9.2.0 58,637 2/3/2021
9.1.0 5,483 1/18/2021
8.12.14 10,313 12/28/2020
8.12.9 3,707 12/18/2020
8.11.15 8,807 11/26/2020
8.11.9 7,900 11/18/2020
8.10.4 14,690 10/22/2020
8.10.0 5,935 10/13/2020
8.9.6 8,227 9/11/2020
8.8.2 8,171 8/17/2020
8.7.5 20,055 7/13/2020
8.6.3 24,800 6/5/2020
8.5.9 5,193 5/28/2020
8.4.10 11,487 4/29/2020
8.4.7 103,832 4/22/2020
8.4.2 3,189 4/15/2020
8.4.0 817 4/14/2020
8.3.15 6,224 3/25/2020
8.3.8 5,319 3/13/2020
8.3.0 2,762 3/3/2020
8.2.9 6,398 2/14/2020
8.2.4 2,496 2/12/2020
8.1.10 12,038 1/22/2020
8.1.4 2,053 1/16/2020
8.1.0 4,945 1/10/2020
7.12.23 16,825 12/20/2019
7.12.21 1,988 12/18/2019
7.11.1 23,609 11/6/2019
7.10.0 4,098 10/31/2019
7.9.9 8,920 9/29/2019
7.9.0 11,490 9/6/2019
7.8.12 5,298 8/22/2019
7.8.8 1,701 8/19/2019
7.7.23 9,970 7/31/2019
7.7.0 6,869 7/22/2019
7.6.16 6,627 7/1/2019
7.6.5 7,495 6/12/2019
7.5.9 5,273 5/17/2019
7.5.1 134,712 5/2/2019
7.4.14 1,240 4/26/2019
7.4.11 2,276 4/19/2019
7.4.6 2,192 4/11/2019
7.3.10 13,410 3/22/2019
7.3.3 11,439 3/8/2019
7.2.4 4,380 2/22/2019
7.1.19 31,313 2/2/2019
7.1.10 3,719 1/22/2019
7.1.0 24,217 1/3/2019
6.12.8 4,178 12/27/2018
6.12.4 2,145 12/14/2018
6.12.1 4,254 12/4/2018
6.11.9 10,087 11/22/2018
6.11.7 4,587 11/15/2018
6.11.5 2,789 11/12/2018
6.11.2 1,306 11/7/2018
6.10.6 3,903 10/26/2018
6.9.13 4,166 9/30/2018
6.9.11 7,777 9/25/2018
6.8.16 19,823 8/31/2018
6.8.11 3,058 8/22/2018
6.8.6 6,446 8/14/2018