Aspose.Words 23.2.0
Word Document Processing .NET API
Product Page | Docs | Demos | API Reference | Examples | Blog | Search | Free Support | Temporary License
Aspose.Words for .NET is a class library that can be used by C#, F#, VB.NET developers for a variety of document-processing tasks, including document generation, modification, converting, and rendering. Our library is self-sufficient and doesn't depend on any third-party software, such as Microsoft Word, OpenOffice, and similar office suites.
This package can be used to develop applications for a vast range of operating systems (Windows, Linux, macOS, iOS, Android) and platforms such as Windows Azure, Xamarin.Android, Xamarin.iOS, Xamarin.Mac. You can build both 32-bit and 64-bit software, including ASP.NET, WCF, and WinForms. Also, you can use our library via COM Interop from ASP, PHP, Perl, and Python programming languages.
Please note: our library implies the use of .NET programming languages, compatible with CLI infrastructure. If you require a corresponding native library for C++, you can download it from here. The Python version you can download from here.
Functionality
- Provides comprehensive document import and export with 35+ supported file formats. This allows developers to convert documents from one file format to another. For example, you can convert PDF to Word and Word to PDF documents with professional quality.
- Provides full access to all Word and OpenOffice document elements, including formatting properties and styling.
- Provides high-fidelity rendering of Word documents to PDF, JPG, PNG and other imaging formats.
- Provides the ability to print OpenOffice and Word documents programmatically."
- Supports powerful Report Generation with Mail Merge functionality, which allows creating documents dynamically using templates and data sources.
- Contains a flexible LINQ Reporting Engine, designed to fetch data from databases, XML, JSON, OData, external documents.
- Provides a rich set of utility functions, you can use to split a document into parts, join documents together, compare documents, and much more.
To become familiar with the most popular Aspose.Words functionality, please have a look at our free online applications.
Supported Formats
Read and Write Formats
Microsoft Word: DOC, DOT, DOCX, DOTX, DOTM, FlatOpc, FlatOpcMacroEnabled, FlatOpcTemplate, FlatOpcTemplateMacroEnabled, RTF, Microsoft Word 2003 WordprocessingML, XML
OpenDocument: ODT, OTT
Web: HTML, MHTML
Markdown: MD
Fixed Layout: PDF
Text: TXT
eBook: AZW3
Read-Only Formats
Microsoft Word: DocPreWord60
eBook: MOBI, CHM
Write-Only Formats
Fixed Layout: XPS, OpenXps
PostScript: PS
Printer: PCL
eBook: EPUB
Markup: XamlFixed, HtmlFixed, XamlFlow, XamlFlowPack
Image: SVG, TIFF, PNG, BMP, JPEG, GIF
Metafile: EMF
Getting Started
So, you probably want to jump up and start coding your document processing application on C#, F# or Visual Basic right away? Let us show you how to do it in a few easy steps.
Run Install-Package Aspose.Words
from the Package Manager Console in Visual Studio to fetch the NuGet package.
If you want to upgrade to the latest package version, please run Update-Package Aspose.Words
.
You can run the following code snippets in C# to see how our library works. Also feel free to check out the GitHub Repository for other common use cases.
Create a DOCX using C#
Aspose.Words for .NET allows you to create a blank Word document and add content to the file.
// Create a Word document.
Document doc = new Document();
// Use a DocumentBuilder instance to add content to the file.
DocumentBuilder builder = new DocumentBuilder(doc);
// Write a new paragraph to the document.
builder.Writeln("This is an example of a Word document created in C#");
// Save it as a DOCX file. The output format is automatically determined by the filename extension.
doc.Save(dir + "OutputWordDocument.docx");
Create a PDF in C#
Aspose.Words for .NET allows you to create a new PDF file and fill it with data.
// Create a PDF document.
Document pdf = new Document();
// Use a DocumentBuilder instance to add content to the file.
DocumentBuilder builder = new DocumentBuilder(pdf);
// Write a new paragraph to the document.
builder.Writeln("This is an example of a PDF document created using C#");
// Save it as a PDF file.
pdf.Save(dir + "OutputDocument.pdf");
Convert a Word document to HTML with C#
You can convert Microsoft Word to PDF, XPS, Markdown, HTML, JPEG, TIFF, and other file formats. The following snippet demonstrates the conversion from DOCX to HTML:
// Load a Word file from the local drive.
Document doc = new Document(dir + "InputWordDocument.docx");
// Save it to HTML format.
doc.Save(dir + "OutputHtmlDocument.html");
Import a PDF and save as a DOCX via C#
In addition, you can import a PDF file into your .NET application and export it as a DOCX format file without the need to install Microsoft Word:
// Load a PDF file from the local drive.
Document pdf = new Document(dir + "InputDocument.pdf");
// Save it to DOCX format.
pdf.Save(dir + "OutputWordDocument.docx");
Product Page | Docs | Demos | API Reference | Examples | Blog | Search | Free Support | Temporary License
No packages depend on Aspose.Words.
.NET Framework 3.5
- No dependencies.
.NET 6.0
- SkiaSharp (>= 2.80.1)
- Microsoft.Win32.Registry (>= 4.7.0)
- System.Reflection.Emit.ILGeneration (>= 4.3.0)
- System.Text.Encoding.CodePages (>= 4.5.0)
- System.Reflection.Emit (>= 4.3.0)
.NET Standard 2.0
- SkiaSharp (>= 2.80.1)
- Microsoft.Win32.Registry (>= 4.7.0)
- System.Reflection.Emit (>= 4.3.0)
- System.Text.Encoding.CodePages (>= 4.5.0)
- System.Reflection.Emit.ILGeneration (>= 4.3.0)
.NET Framework 4.6.1
- No dependencies.
.NET Framework 4.0
- No dependencies.
.NET Framework 4.0
- No dependencies.
Version | Downloads | Last updated |
---|---|---|
25.4.0 | 8 | 04/09/2025 |
25.3.0 | 16 | 03/07/2025 |
25.2.0 | 17 | 02/09/2025 |
25.1.0 | 20 | 01/07/2025 |
24.12.0 | 19 | 12/12/2024 |
24.11.1 | 24 | 11/15/2024 |
24.11.0 | 23 | 11/12/2024 |
24.10.0 | 22 | 10/15/2024 |
24.9.0 | 21 | 09/10/2024 |
24.8.0 | 26 | 08/08/2024 |
24.7.0 | 27 | 07/10/2024 |
24.6.0 | 23 | 06/08/2024 |
24.5.0 | 28 | 05/05/2024 |
24.4.0 | 51 | 04/10/2024 |
24.3.0 | 53 | 03/26/2024 |
24.2.0 | 33 | 03/10/2024 |
24.1.0 | 55 | 01/13/2024 |
23.12.0 | 53 | 12/07/2023 |
23.11.0 | 52 | 11/09/2023 |
23.10.0 | 55 | 11/04/2023 |
23.9.0 | 48 | 11/05/2023 |
23.8.0 | 36 | 11/04/2023 |
23.7.0 | 36 | 11/04/2023 |
23.6.0 | 50 | 11/04/2023 |
23.5.0 | 46 | 11/06/2023 |
23.4.0 | 53 | 11/04/2023 |
23.3.0 | 46 | 11/04/2023 |
23.2.0 | 58 | 11/05/2023 |
23.1.0 | 48 | 11/04/2023 |
22.12.0 | 53 | 11/04/2023 |
22.11.0 | 50 | 11/04/2023 |
22.10.0 | 51 | 11/04/2023 |
22.9.0 | 50 | 11/04/2023 |
22.8.0 | 50 | 11/04/2023 |
22.7.0 | 53 | 11/04/2023 |
22.6.0 | 50 | 11/04/2023 |
22.5.0 | 53 | 11/04/2023 |
22.4.0 | 56 | 11/04/2023 |
22.3.0 | 52 | 11/04/2023 |
22.2.0 | 57 | 11/05/2023 |
22.1.0 | 54 | 11/04/2023 |
21.12.0 | 51 | 11/05/2023 |
21.11.0 | 46 | 11/04/2023 |
21.10.0 | 49 | 11/05/2023 |
21.9.0 | 61 | 11/04/2023 |
21.8.0 | 53 | 11/04/2023 |
21.7.0 | 57 | 11/04/2023 |
21.6.0 | 47 | 11/04/2023 |
21.5.0 | 51 | 11/04/2023 |
21.4.0 | 54 | 11/04/2023 |
21.3.0 | 44 | 11/11/2023 |
21.2.0 | 58 | 11/04/2023 |
21.1.0 | 49 | 11/04/2023 |
20.12.0 | 50 | 11/04/2023 |
20.11.0 | 48 | 11/04/2023 |
20.10.0 | 50 | 11/04/2023 |
20.9.0 | 64 | 11/04/2023 |
20.8.0 | 37 | 11/04/2023 |
20.7.0 | 40 | 11/09/2023 |
20.6.0 | 39 | 11/04/2023 |
20.5.0 | 49 | 11/04/2023 |
20.4.0 | 47 | 11/04/2023 |
20.3.0 | 28 | 11/04/2023 |
20.2.0 | 49 | 11/05/2023 |
20.1.0 | 46 | 11/04/2023 |
19.12.0 | 46 | 11/04/2023 |
19.11.0 | 50 | 11/04/2023 |
19.10.0 | 48 | 11/04/2023 |
19.9.0 | 52 | 11/11/2023 |
19.8.0 | 56 | 11/04/2023 |
19.7.0 | 24 | 11/04/2023 |
19.6.0 | 47 | 11/05/2023 |
19.5.0 | 51 | 11/04/2023 |
19.4.0 | 59 | 11/04/2023 |
19.3.0 | 59 | 11/04/2023 |
19.2.0 | 51 | 11/05/2023 |
19.1.0 | 57 | 11/04/2023 |
18.12.0 | 63 | 11/04/2023 |
18.11.0 | 51 | 11/04/2023 |
18.10.0 | 57 | 11/04/2023 |
18.9.0 | 34 | 11/04/2023 |
18.8.0 | 45 | 11/04/2023 |
18.7.0 | 55 | 11/04/2023 |
18.6.0 | 57 | 11/04/2023 |
18.5.0 | 63 | 11/04/2023 |
18.4.0 | 62 | 11/05/2023 |
18.3.0 | 50 | 11/04/2023 |
18.2.0 | 53 | 11/04/2023 |
18.1.0 | 46 | 11/04/2023 |
17.12.0 | 48 | 11/04/2023 |
17.11.0 | 29 | 11/04/2023 |
17.10.0 | 31 | 11/11/2023 |
17.9.0 | 32 | 11/05/2023 |
17.8.0 | 26 | 11/04/2023 |
17.7.0 | 32 | 11/04/2023 |
17.6.0 | 30 | 11/04/2023 |
17.5.0 | 32 | 11/04/2023 |
17.4.0 | 28 | 11/04/2023 |
17.3.0 | 35 | 11/06/2023 |
17.2.0 | 34 | 11/06/2023 |
17.1.0 | 33 | 11/04/2023 |
16.12.0 | 34 | 11/04/2023 |
16.11.0 | 31 | 11/04/2023 |
16.10.0 | 25 | 11/06/2023 |
16.8.0 | 32 | 11/06/2023 |
16.7.0 | 26 | 11/04/2023 |
16.6.0 | 27 | 11/04/2023 |
16.5.0 | 28 | 11/05/2023 |
16.4.0 | 29 | 11/05/2023 |
16.3.0 | 27 | 10/26/2023 |
16.2.0 | 33 | 11/04/2023 |
16.1.0 | 33 | 11/04/2023 |
15.12.0 | 37 | 11/05/2023 |
15.11.0 | 33 | 11/04/2023 |
15.10.0 | 33 | 11/04/2023 |
15.9.0 | 34 | 11/11/2023 |
15.8.1 | 31 | 11/04/2023 |
15.7.0 | 28 | 11/06/2023 |
15.6.0 | 37 | 11/04/2023 |
15.5.0 | 32 | 11/04/2023 |
15.4.0 | 30 | 11/04/2023 |
15.3.0 | 27 | 11/04/2023 |
15.2.0 | 42 | 11/11/2023 |
15.1.0 | 31 | 11/04/2023 |
14.12.0 | 33 | 11/11/2023 |
14.11.0 | 27 | 11/04/2023 |
14.10.0 | 36 | 11/11/2023 |
14.9.0 | 28 | 11/05/2023 |
14.8.0 | 25 | 11/08/2023 |
14.7.0 | 29 | 11/04/2023 |
14.6.0 | 31 | 11/05/2023 |
14.5.0 | 29 | 11/04/2023 |
14.4.0 | 31 | 11/05/2023 |
14.3.0 | 25 | 11/04/2023 |
14.2.0 | 29 | 11/04/2023 |
14.1.0 | 27 | 11/04/2023 |
13.12.0 | 32 | 11/05/2023 |
13.11.0 | 31 | 11/04/2023 |
13.10.0 | 27 | 11/04/2023 |
13.9.0 | 35 | 11/04/2023 |
13.8.0 | 28 | 11/04/2023 |
13.7.0 | 28 | 11/05/2023 |
13.6.0 | 30 | 11/04/2023 |
13.5.0 | 28 | 11/04/2023 |
13.4.0 | 36 | 11/04/2023 |
13.3.0 | 36 | 11/04/2023 |
13.2.0 | 32 | 11/04/2023 |
13.1.0 | 34 | 11/04/2023 |
11.11.0 | 30 | 11/06/2023 |
11.10.0 | 31 | 11/04/2023 |
11.9.0 | 35 | 11/04/2023 |
11.8.0 | 44 | 11/04/2023 |
11.7.0 | 29 | 11/05/2023 |
11.6.0 | 28 | 11/04/2023 |
11.5.0 | 27 | 11/05/2023 |
11.4.0 | 27 | 11/05/2023 |
11.3.0 | 32 | 11/04/2023 |
11.2.0 | 33 | 11/04/2023 |
11.1.0 | 29 | 11/04/2023 |
11.0.0.1 | 34 | 11/04/2023 |
11.0.0 | 30 | 11/04/2023 |
10.8.0 | 36 | 11/04/2023 |