Install PDF Viewer packages in ASP.NET Core
28 Feb 20261 minute to read
The Syncfusion® ASP.NET Core PDF Viewer requires the Syncfusion.EJ2.PdfViewer.AspNet.Core NuGet package. This package contains all the necessary assemblies, managed wrappers, and server-side components to render and interact with PDF documents.
Installation methods
The PDF Viewer dependency can be added to the ASP.NET Core project using one of the following methods:
Visual Studio NuGet Manager
- Right-click on the project in Solution Explorer and select Manage NuGet Packages.
- Search for
Syncfusion.EJ2.PdfViewer.AspNet.Core. - Select the required version and click Install.
.NET CLI
Run the following command in the project directory:
dotnet add package Syncfusion.EJ2.PdfViewer.AspNet.CoreManual Package Reference
Add the following <PackageReference> entry directly to the .csproj file:
<ItemGroup>
<PackageReference Include="Syncfusion.EJ2.PdfViewer.AspNet.Core" Version="*" />
</ItemGroup>Replace * with the specific version matching the other Syncfusion dependencies. NuGet automatically restores the package and its dependencies during the next build or dotnet restore operation.
Licensing requirement
Syncfusion provides a license key that must be registered in the application. Ensure that the key is registered in the Program.cs or Startup.cs file before deploying the application to avoid licensing watermarks. For detailed instructions, refer to the Syncfusion licensing documentation.