Install EJ2 PDF Viewer packages automatically in ASP.NET Core

Install the Syncfusion ASP.NET Core PDF Viewer dependencies by adding the Syncfusion.EJ2.PdfViewer.AspNet.Core package to the project file. When the project is built or a dotnet restore runs, NuGet downloads the package and its dependencies.

Open the .csproj file in Visual Studio or another editor and add the package reference entry shown below.

<PackageReference Include="Syncfusion.EJ2.PdfViewer.AspNet.Core" Version="*" />

Alternatively, install the package through Manage NuGet Packages in Visual Studio or by running dotnet add package Syncfusion.EJ2.PdfViewer.AspNet.Core. Ensure the Syncfusion license is registered in the application before publishing. For license requirements, refer to the Syncfusion licensing documentation.