NuGet Packages Required to Convert Word to Image
24 Jul 20264 minutes to read
Converting Word document to Image
To convert a Word document to an image, the following NuGet packages need to be installed in your application. Ensure you have registered your Syncfusion® license key in your project before using these packages.
| Platform(s) | Package name | Package manager console command |
|---|---|---|
| Windows Forms, Console Application (Targeting .NET Framework) | Syncfusion.DocIO.WinForms.nupkg | Install-Package Syncfusion.DocIO.WinForms |
| WPF | Syncfusion.DocIO.Wpf.nupkg | Install-Package Syncfusion.DocIO.Wpf |
| ASP.NET MVC5 | Syncfusion.DocIO.AspNet.Mvc5.nupkg | Install-Package Syncfusion.DocIO.AspNet.Mvc5 |
| ASP.NET Core, Console Application (Targeting .NET Core) and Blazor |
Syncfusion.DocIORenderer.Net.Core.nupkg Note: Please refer to know about the NuGet packages that need to be installed to perform Word to Image conversion in Linux OS. |
Install-Package Syncfusion.DocIORenderer.Net.Core |
|
Windows UI Library (WinUI) .NET Multi-platform App UI (.NET MAUI) |
Syncfusion.DocIORenderer.NET | Install-Package Syncfusion.DocIORenderer.NET |
TIPS
If you encounter issues while using the .NET Word library in ASP.NET Core, refer to the troubleshooting guide for recommended checks and solutions.
Retired Platforms
The following NuGet packages need to be included in your application based on the platform.
| Platform(s) | Package name | Package manager console command |
|---|---|---|
|
|
Syncfusion.DocIO.AspNet.nupkg | Install-Package Syncfusion.DocIO.AspNet |
|
|
Syncfusion.Xamarin.DocIORenderer.nupkg | Install-Package Syncfusion.Xamarin.DocIORenderer |
| .NET Framework 3.5 or 4.0 Client Profile | Syncfusion.DocIO.ClientProfile.nupkg | Install-Package Syncfusion.DocIO.ClientProfile |
|
|
Syncfusion.DocIO.AspNet.Mvc4.nupkg | Install-Package Syncfusion.DocIO.AspNet.Mvc4 |
Additional NuGet packages required for Linux
The SkiaSharp and HarfBuzzSharp native asset NuGet packages are required as additional dependencies when deploying your application in Linux environments. Choose the appropriate package based on your specific Linux environment.
The following table illustrates the native assets NuGet packages and their applicable Linux environments:
| Required Native assets NuGet packages | Applicable Linux environments |
|---|---|
|
SkiaSharp.NativeAssets.Linux v3.119.1 |
|
|
Converting Charts
In addition to the base Word-to-Image package, the following NuGet package needs to be installed to preserve charts as images during Word to Image conversion.
| Platform(s) | Package name | Package manager console command |
|---|---|---|
| Windows Forms, Console Application (Targeting .NET Framework) | Syncfusion.OfficeChartToImageConverter.WinForms.nupkg | Install-Package Syncfusion.OfficeChartToImageConverter.WinForms |
| WPF | Syncfusion.OfficeChartToImageConverter.Wpf.nupkg | Install-Package Syncfusion.OfficeChartToImageConverter.Wpf |
| ASP.NET MVC4 | Syncfusion.OfficeChartToImageConverter.AspNet.Mvc4.nupkg | Install-Package Syncfusion.OfficeChartToImageConverter.AspNet.Mvc4 |
| ASP.NET MVC5 | Syncfusion.OfficeChartToImageConverter.AspNet.Mvc5.nupkg | Install-Package Syncfusion.OfficeChartToImageConverter.AspNet.Mvc5 |
Retired Platforms
The following NuGet package needs to be referenced in your application based on the platform.
| Platform(s) | Package name | Package manager console command |
|---|---|---|
|
ASP.NET |
Syncfusion.OfficeChartToImageConverter.AspNet.nupkg | Install-Package Syncfusion.OfficeChartToImageConverter.AspNet |
| ASP.NET MVC4 | Syncfusion.OfficeChartToImageConverter.AspNet.Mvc4.nupkg | Install-Package Syncfusion.OfficeChartToImageConverter.AspNet.Mvc4 |
NOTE
- Starting with v16.2.0.x, if you reference Syncfusion® assemblies from trial setup or from the NuGet feed, you must also add the “Syncfusion.Licensing” assembly reference and include a license key in your projects. Please refer to this link to know about registering Syncfusion® license key in your application to use our components.
- Syncfusion® components are available in nuget.org.
- Syncfusion has deprecated the ASP.NET, Xamarin, and UWP packages. We strongly recommend upgrading your applications to ASP.NET Core, .NET MAUI, or WinUI. Refer here to migrate from .NET Framework to .NET Core.
NuGet Package Installation and Uninstallation
To use Syncfusion® NuGet packages in your project, please refer to the NuGet Package Installation and Uninstallation sections.
DocIO NuGet packages can be installed and uninstalled using Package Manager Console. In Visual Studio, select Tools > NuGet Package Manager > Package Manager Console and execute the following commands. The following examples use the OfficeChartToImageConverter packages; replace the package name with the appropriate DocIO/DocIORenderer package for your platform.
Windows Forms
NuGet Package: Syncfusion.OfficeChartToImageConverter.WinForms
The package contains the OfficeChartToImageConverter .NET library for converting the chart present in a Word document to an image.
// Install package
Install-Package Syncfusion.OfficeChartToImageConverter.WinForms// Uninstall package
Uninstall-Package Syncfusion.OfficeChartToImageConverter.WinForms -RemoveDependenciesWPF
NuGet Package: Syncfusion.OfficeChartToImageConverter.Wpf
The package contains the OfficeChartToImageConverter .NET library for converting the chart present in a Word document to an image.
// Install package
Install-Package Syncfusion.OfficeChartToImageConverter.Wpf// Uninstall package
Uninstall-Package Syncfusion.OfficeChartToImageConverter.Wpf -RemoveDependenciesASP.NET MVC5
NuGet Package: Syncfusion.OfficeChartToImageConverter.AspNet.Mvc5
The package contains the OfficeChartToImageConverter .NET library for converting the chart present in a Word document to an image.
// Install package
Install-Package Syncfusion.OfficeChartToImageConverter.AspNet.Mvc5// Uninstall package
Uninstall-Package Syncfusion.OfficeChartToImageConverter.AspNet.Mvc5 -RemoveDependencies