FreeSpire.Doc 10.2.0

.NET 6.0 .NET Core 2.0 .NET Framework 4.0
Install-Package FreeSpire.Doc -Version 10.2.0
dotnet add package FreeSpire.Doc --version 10.2.0
<PackageReference Include="FreeSpire.Doc" Version="10.2.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add FreeSpire.Doc --version 10.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: FreeSpire.Doc, 10.2.0"
#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 FreeSpire.Doc as a Cake Addin
#addin nuget:?package=FreeSpire.Doc&version=10.2.0

// Install FreeSpire.Doc as a Cake Tool
#tool nuget:?package=FreeSpire.Doc&version=10.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Free .NET Library to Create, Manipulate & Convert Word Documents

Foo

Product Page | Documentation | Examples | Forum | Customized Demo

Free Spire.Doc for .NET is a Community Edition of the Spire.Doc for .NET, which is a totally free Word API for commercial and personal use.

Using Free Spire.Doc for .NET, developers can 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.

Friendly Reminder: Free version is limited to 500 paragraphs and 25 tables. This limitation is enforced during reading or writing files. When converting word documents to PDF and XPS files, you can only get the first 3 page of PDF file.

Standalone .NET API

Free 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

Free 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 Free 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 | 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
.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 (15)

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

Package Downloads
EY.Classlib.Common

Package Description

PdfConverter

A library for converting images and word documents to PDF documents.

webenology.blazor.components

Blazor Components used at webenology

Aaron.SDK.LvDD

LvDD Electronic Contract

Our.Umbraco.Dexter.IndexStrategies

Web site

GitHub repositories (1)

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

Repository Stars
tianlian0/paper_checking_system
基于C#和C++开发的文本查重/论文查重系统,一亿字次级论文库秒级查重。关联:查重算法、数据去重、文档查重、文本去重、标书查重、辅助防串标、作业查重、duplicate check
Version Downloads Last updated
10.2.0 60,786 2/11/2022
9.9.7 74,599 9/18/2021
7.11.0 466,751 11/5/2019
7.1.13 126,539 1/25/2019
6.3.0 61,494 5/4/2018
5.7.0 98,933 9/7/2016

Thank you for your interests in Spire.Doc. Free Spire.Doc is a professional and powerful Word component which enables you to generate, load, write, edit and save Word document on .NET and WPF. With Spire.Doc, you can create a large range of applications. Now it supports to work on .NET Core. .NET Standard 2.0, Azure function