NuGet Packages Required to Convert Word to PDF| Syncfusion

13 Aug 20266 minutes to read

Converting a Word Document to PDF

For converting a Word document into PDF, the following NuGet packages need to be installed in your application.

Platform(s) Package name Package manager console command

Windows Forms

, Console Application (Targeting .NET Framework)
Syncfusion.DocToPdfConverter.WinForms Install-Package Syncfusion.DocToPdfConverter.WinForms

WPF

Syncfusion.DocToPdfConverter.Wpf Install-Package Syncfusion.DocToPdfConverter.Wpf

ASP.NET MVC5

Syncfusion.DocToPdfConverter.AspNet.Mvc5 Install-Package Syncfusion.DocToPdfConverter.AspNet.Mvc5

ASP.NET Core

, Console Application (Targeting .NET Core) and

Blazor

Syncfusion.DocIORenderer.Net.Core

Note:
Please refer

here

to know about the NuGet packages that need to be installed to perform Word to PDF 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.

</tbody>
Platform(s) Package name Package manager console command

ASP.NET


Syncfusion.DocToPdfConverter.AspNet Install-Package Syncfusion.DocToPdfConverter.AspNet

ASP.NET MVC4

Syncfusion.DocToPdfConverter.AspNet.Mvc4 Install-Package Syncfusion.DocToPdfConverter.AspNet.Mvc4

Xamarin


Syncfusion.Xamarin.DocIORenderer Install-Package Syncfusion.Xamarin.DocIORenderer

NOTE

  1. Starting with v16.2.0.x, if you reference Syncfusion® assemblies from trial setup or from the NuGet feed, you also have to add the “Syncfusion.Licensing” assembly reference and include a license key in your projects. Please refer to this link to know about registering the Syncfusion® license key in your application to use our components.
  2. Syncfusion® components are available in nuget.org
  3. Please refer the procedure to deploy your .NET Core application in Linux OS from here.
  4. From v32.1.19, the dependent package SkiaSharp is upgraded from 3.116.1 to 3.119.1 version and it is mandatory to use SkiaSharp.NativeAssets.Linux v3.119.1 and HarfBuzzSharp.NativeAssets.Linux v8.3.1.2 packages for converting Word documents into PDF in Linux environment.
  5. “DocIO supports Word to PDF conversion in a UWP application using DocIORenderer.” For further information, please refer here
  6. Syncfusion has deprecated the Syncfusion.DocToPdfConverter.AspNet package. We strongly recommend upgrading your applications to ASP.NET Core. Refer here to migrate from .NET Framework to .NET Core.

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. There are two types of NuGet packages. Choose the appropriate ones based on your specific Linux environment.

Run one of the following commands in the Package Manager Console (or use dotnet add package for SDK-style projects):

// Common Linux distributions, Azure App Service, Google App Engine
Install-Package SkiaSharp.NativeAssets.Linux -Version 3.119.1
Install-Package HarfBuzzSharp.NativeAssets.Linux -Version 8.3.1.2
// AWS Lambda, AWS Elastic Beanstalk (use the NoDependencies variant)
Install-Package SkiaSharp.NativeAssets.Linux.NoDependencies -Version 3.119.1

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


HarfBuzzSharp.NativeAssets.Linux v8.3.1.2

  • Common Linux distributions such as Ubuntu, Alpine, CentOS, Debian, Fedora, and RHEL
  • Azure App Service
  • Google App Engine

SkiaSharp.NativeAssets.Linux.NoDependencies v3.119.1

  • AWS Lambda
  • AWS Elastic Beanstalk

Converting Charts

The following NuGet package needs to be installed additionally to preserve a chart as image in Word to PDF conversion.

Note: The chart-to-image converter package is only required for .NET Framework targets (WinForms, WPF, ASP.NET MVC4, ASP.NET MVC5, and the retired ASP.NET). For ASP.NET Core, Blazor, WinUI, .NET MAUI, and Xamarin, the base Syncfusion.DocIORenderer.Net.Core or Syncfusion.DocIORenderer.NET package handles chart rendering natively and no additional chart package is needed.

</tbody>
Platform(s) Package name Package manager console command
Windows Forms, Console Application (Targeting .NET Framework) Syncfusion.OfficeChartToImageConverter.WinForms Install-Package Syncfusion.OfficeChartToImageConverter.WinForms
WPF Syncfusion.OfficeChartToImageConverter.Wpf Install-Package Syncfusion.OfficeChartToImageConverter.Wpf
ASP.NET MVC5 Syncfusion.OfficeChartToImageConverter.AspNet.Mvc5 Install-Package Syncfusion.OfficeChartToImageConverter.AspNet.Mvc5

Retired Platforms (Charts)

The following NuGet packages need to be included in your application based on the retired platform.

</tbody>
Platform(s) Package name Package manager console command
ASP.NET
Syncfusion.OfficeChartToImageConverter.AspNet Install-Package Syncfusion.OfficeChartToImageConverter.AspNet
ASP.NET MVC4 Syncfusion.OfficeChartToImageConverter.AspNet.Mvc4 Install-Package Syncfusion.OfficeChartToImageConverter.AspNet.Mvc4

NuGet Package Installation and Uninstallation

To use Syncfusion® NuGet packages in your project, please refer 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.

Windows Forms

NuGet Package: Syncfusion.DocToPdfConverter.WinForms

The package contains the DocToPdfConverter .NET library that allows you to convert the Word documents to PDF.

// Install package
Install-Package Syncfusion.DocToPdfConverter.WinForms
// Uninstall package
Uninstall-Package Syncfusion.DocToPdfConverter.WinForms -RemoveDependencies

NuGet Package: Syncfusion.OfficeChartToImageConverter.WinForms

The package contains OfficeChartToImageConverter .NET library for converting the chart present in word document to image.

// Install package
Install-Package Syncfusion.OfficeChartToImageConverter.WinForms
// Uninstall package
Uninstall-Package Syncfusion.OfficeChartToImageConverter.WinForms -RemoveDependencies

WPF

NuGet Package: Syncfusion.DocToPdfConverter.Wpf

The package contains the DocToPdfConverter .NET library that allows you to convert the Word documents to PDF.

// Install package
Install-Package Syncfusion.DocToPdfConverter.Wpf
// Uninstall package
Uninstall-Package Syncfusion.DocToPdfConverter.Wpf -RemoveDependencies

NuGet Package: Syncfusion.OfficeChartToImageConverter.Wpf

The package contains OfficeChartToImageConverter .NET library for converting the chart present in word document to image.

// Install package
Install-Package Syncfusion.OfficeChartToImageConverter.Wpf
// Uninstall package
Uninstall-Package Syncfusion.OfficeChartToImageConverter.Wpf -RemoveDependencies

ASP.NET MVC5

NuGet Package: Syncfusion.DocToPdfConverter.AspNet.Mvc5

The package contains the DocToPdfConverter .NET library that allows you to convert the Word documents to PDF.

// Install package
Install-Package Syncfusion.DocToPdfConverter.AspNet.Mvc5
// Uninstall package
Uninstall-Package Syncfusion.DocToPdfConverter.AspNet.Mvc5 -RemoveDependencies

NuGet Package: Syncfusion.OfficeChartToImageConverter.AspNet.Mvc5

The package contains OfficeChartToImageConverter .NET library for converting the chart present in word document to image.

// Install package
Install-Package Syncfusion.OfficeChartToImageConverter.AspNet.Mvc5
// Uninstall package
Uninstall-Package Syncfusion.OfficeChartToImageConverter.AspNet.Mvc5 -RemoveDependencies

ASP.NET Core and Blazor

NuGet Package: Syncfusion.DocIORenderer.Net.Core

The package contains the DocIORenderer .NET portable library that allows you to convert the Word documents to PDF.

// Install package
Install-Package Syncfusion.DocIORenderer.Net.Core
// Uninstall package
Uninstall-Package Syncfusion.DocIORenderer.Net.Core -RemoveDependencies

Windows UI Library (WinUI) and .NET Multi-platform App UI (.NET MAUI)

NuGet Package: Syncfusion.DocIORenderer.NET

The package contains the DocIORenderer .NET library that allows you to convert the Word documents to PDF.

// Install package
Install-Package Syncfusion.DocIORenderer.NET
// Uninstall package
Uninstall-Package Syncfusion.DocIORenderer.NET -RemoveDependencies