FreeSpire.Doc
9.9.7
See the version list below for details.
dotnet add package FreeSpire.Doc --version 9.9.7
NuGet\Install-Package FreeSpire.Doc -Version 9.9.7
<PackageReference Include="FreeSpire.Doc" Version="9.9.7" />
paket add FreeSpire.Doc --version 9.9.7
#r "nuget: FreeSpire.Doc, 9.9.7"
// Install FreeSpire.Doc as a Cake Addin
#addin nuget:?package=FreeSpire.Doc&version=9.9.7
// Install FreeSpire.Doc as a Cake Tool
#tool nuget:?package=FreeSpire.Doc&version=9.9.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 pages, 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, RTF, TXT, HTML, ODT and vice versa
- Convert Word to PDF, PDF/A, SVG, PCL, PostScript, XPS and EPUB
- Convert Word to image (PNG, JPG, TIFF, BMP, EMF)
- Convert Word to WordXML
- Convert HTML, HTML string to Word
- Convert HTML to PDF, image, XML, XPS
- Convert image to PDF
- Convert XML to PDF
- Convert RTF to HTML, PDF
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
Image[] images = document.SaveToImages(Spire.Doc.Documents.ImageType.Bitmap);
for (int i = 0; i < images.Length; i++)
{
Image img = images[i];
String fileName = String.Format("img-{0}.png", i);
img.Save(fileName, System.Drawing.Imaging.ImageFormat.Png);
img.Dispose();
}
Product Page | Documentation | Examples | Forum | Temporary License | Customized Demo
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 was computed. 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 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net20 is compatible. net35 was computed. 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. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios is compatible. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 2.0
- No dependencies.
-
.NETFramework 4.0
- No dependencies.
-
.NETStandard 2.0
- SkiaSharp (>= 1.68.0)
- System.Security.Cryptography.Xml (>= 4.5.0)
- System.Text.Encoding.CodePages (>= 4.5.0)
-
MonoAndroid 0.0
- SkiaSharp (>= 1.68.0)
- System.Security.Cryptography.Xml (>= 4.6.0)
- System.Text.Encoding.CodePages (>= 4.6.0)
-
net5.0
- System.Drawing.Common (>= 5.0.0)
- System.Security.Cryptography.Xml (>= 5.0.0)
- System.Text.Encoding.CodePages (>= 5.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 (20)
Showing the top 5 NuGet packages that depend on FreeSpire.Doc:
Package | Downloads |
---|---|
EY.Classlib.Common
Package Description |
|
webenology.blazor.components
Blazor Components used at webenology |
|
PdfConverter
A library for converting images and word documents to PDF documents. |
|
Our.Umbraco.Dexter.IndexStrategies
Web site |
|
Aaron.SDK.LvDD
LvDD Electronic Contract |
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
|
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