Skip to main content
NewRelease v35.2.12 · November 17, 2026

Evaluate the PDF Viewer SDK free.Start building today.

Getting started

Add the PDF Viewer SDK to your app.

Use a package manager to add the PDF Viewer SDK to your application now, or download Syncfusion Studio to browse samples and binaries on your desktop.

Framework
Search all platforms
1

Install the Blazor PDF Viewer package

Install the Syncfusion Blazor NuGet packages in your application using the following command via Package Manager Console.

PowerShell
Install-Package Syncfusion.Blazor.SfPdfViewer
Install-Package Syncfusion.Blazor.Themes
2

Add the namespace

Add the Syncfusion.Blazor namespace to the Program.cs file.

C#
using Syncfusion.Blazor;
3

Register your trial license key

Include your license key in Program.cs before initializing any Syncfusion components.

C#
using Syncfusion.Licensing;

Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense("YOUR_LICENSE_KEY");
Replace YOUR_LICENSE_KEY with your trial key. Get it free.
4

Register Syncfusion Blazor service

Register the Syncfusion Blazor service in the Program.cs file after the builder is created.

C#
// Register Syncfusion Blazor service
builder.Services.AddSignalR(o => { o.MaximumReceiveMessageSize = 102400000; });
builder.Services.AddMemoryCache();
builder.Services.AddSyncfusionBlazor();
5

Add stylesheet resource

Add the stylesheet at the end of the <head> section in the Components/App.razor file to apply proper layout and theme styling.

Razor
<!-- Add Syncfusion theme -->
<link href="_content/Syncfusion.Blazor.Themes/bootstrap5.css" rel="stylesheet" />
6

Add script resource

Add the required script at the end of the <body> section in the Components/App.razor file to enable component functionality.

Razor
<!-- Add the PDF Viewer script -->
<script src="_content/Syncfusion.Blazor.SfPdfViewer/scripts/syncfusion-blazor-sfpdfviewer.min.js" type="text/javascript"></script>
7

Add Blazor PDF Viewer component

Add the Syncfusion Blazor PDF Viewer component in Components/Pages/Home.razor file and run the application..

Razor
@using Syncfusion.Blazor.SfPdfViewer
@rendermode InteractiveServer

<SfPdfViewer2 DocumentPath="https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf"
              Height="100%"
              Width="100%">
</SfPdfViewer2>
Find a control

Search a control. Copy its install command.

Search 245 controls across 14 platforms. Each command comes from that control’s getting-started guide, and every package is checked on NuGet, npm, or pub.dev.

Try:

Loading controls…

AI coding agent

Evaluate faster with your coding agent.

Paste this prompt into GitHub Copilot, Claude Code, Cursor, or any agent. It sets up Syncfusion for your project from ai.syncfusion.com before it writes code.

Setup prompt
Set up this project for Syncfusion before generating code. Fetch and follow the official instructions at https://ai.syncfusion.com then report the detected platform, installed skills, MCP status, and any required licensing action.
850official skills
18platform packs
14MCP servers

No key needed to install the skills. The MCP servers use the API key that comes with a free account. Agent setup guides

AI assistants

IDEs

Watch

Short, task-first walkthroughs.

All videos
Support

Need help getting started?

Explore our resources or reach out to our support team for assistance.

Prefer working offline?

Syncfusion Studio for your desktop.

One small download. Browse every product, download samples and binaries, and set up your IDE and AI assistant.

  • Windowsx64 · .exe installer · 4.2 MBDownload
  • macOSApple Silicon · .dmg installer · 9.6 MBDownload
  • Linuxx64 · CLI .zip · 2.6 MBDownload