See the version list below for details.
dotnet add package Aspose.Words --version 23.5.0
NuGet\Install-Package Aspose.Words -Version 23.5.0
<PackageReference Include="Aspose.Words" Version="23.5.0" />
paket add Aspose.Words --version 23.5.0
#r "nuget: Aspose.Words, 23.5.0"
// Install Aspose.Words as a Cake Addin #addin nuget:?package=Aspose.Words&version=23.5.0 // Install Aspose.Words as a Cake Tool #tool nuget:?package=Aspose.Words&version=23.5.0
Word Document Processing .NET API
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.
- 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.
Read and Write Formats
Microsoft Word: DOC, DOT, DOCX, DOTX, DOTM, FlatOpc, FlatOpcMacroEnabled, FlatOpcTemplate, FlatOpcTemplateMacroEnabled, RTF, Microsoft Word 2003 WordprocessingML
OpenDocument: ODT, OTT
Web: HTML, MHTML
Fixed Layout: PDF
eBook: AZW3, EPUB, MOBI, CHM
Microsoft Word: DocPreWord60
Other: XML (XML Document)
Fixed Layout: XPS, OpenXps
Markup: XamlFixed, HtmlFixed, XamlFlow, XamlFlowPack
Image: SVG, TIFF, PNG, BMP, JPEG, GIF
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.
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
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||Versions 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 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||net35-client is compatible. net40 is compatible. net40-client is compatible. net403 was computed. net45 was computed. net451 was computed. net452 was computed. net46 was computed. net461 is compatible. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed.|
|MonoAndroid||monoandroid was computed.|
|MonoMac||monomac was computed.|
|MonoTouch||monotouch was computed.|
|Tizen||tizen40 was computed. tizen60 was computed.|
|Xamarin.iOS||xamarinios was computed.|
|Xamarin.Mac||xamarinmac was computed.|
|Xamarin.TVOS||xamarintvos was computed.|
|Xamarin.WatchOS||xamarinwatchos was computed.|
.NETFramework 3.5 Client
- No dependencies.
- No dependencies.
.NETFramework 4.0 Client
- No dependencies.
- No dependencies.
NuGet packages (42)
Showing the top 5 NuGet packages that depend on Aspose.Words:
The Enterprise Web Library (EWL), together with its tailored infrastructure platform, is a highly opinionated foundation for web-based enterprise software.
GroupDocs.Classification for .NET is an easy to use library that allows performing sentiment analysis (classification), document classification, and raw text categorization. Features: * Classifies both raw text and documents with IAB-2, Documents, Sentiment, or Sentiment3 taxonomies. * Sentiment Analysis (Classification) supports Positive/Negative or Positive/Neutral/Negative taxonomies for English, Chinese, German, or Spanish languages. * Returns the probability of each class. Supported document formats: * Microsoft Word documents - DOC, DOT, DOCX, DOCM, DOTX, DOTM, TXT, RTF; * Open Document formats - ODP, ODS, ODT, OTT; * Portable Document Formats - PDF; For more details on the GroupDocs.Classification for .NET API, please visit GroupDocs website at: https://www.groupdocs.com/products/classification/net
SuperOffice NetServer Core is SuperOffice's data access technology for new applications. This is for onsite installations with the same version. This also works with SuperOffice Online.
Aspose.Words.Shaping.HarfBuzz is a .NET wrapper around HarfBuzz shaping engine for use in Aspose.Words. Free support for Aspose.Words for .NET is provided on our support forum: https://forum.aspose.com/ and on StackOverflow: https://stackoverflow.com/questions/tagged/aspose.words
GitHub repositories (2)
Showing the top 2 popular GitHub repositories that depend on Aspose.Words:
Aspose.Words for .NET examples, plugins and showcases
Aspose.PDF for .NET examples, plugins and showcase projects