Evaluate the PDF Viewer SDK free.Start building today.
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.
Install the Blazor PDF Viewer package
Install the Syncfusion Blazor NuGet packages in your application using the following command via Package Manager Console.
Install-Package Syncfusion.Blazor.SfPdfViewer Install-Package Syncfusion.Blazor.Themes
Add the namespace
Add the Syncfusion.Blazor namespace to the Program.cs file.
using Syncfusion.Blazor;
Register your trial license key
Include your license key in Program.cs before initializing any Syncfusion components.
using Syncfusion.Licensing;
Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense("YOUR_LICENSE_KEY");
Register Syncfusion Blazor service
Register the Syncfusion Blazor service in the Program.cs file after the builder is created.
// Register Syncfusion Blazor service
builder.Services.AddSignalR(o => { o.MaximumReceiveMessageSize = 102400000; });
builder.Services.AddMemoryCache();
builder.Services.AddSyncfusionBlazor();
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.
<!-- Add Syncfusion theme --> <link href="_content/Syncfusion.Blazor.Themes/bootstrap5.css" rel="stylesheet" />
Add script resource
Add the required script at the end of the <body> section in the Components/App.razor file to enable component functionality.
<!-- Add the PDF Viewer script --> <script src="_content/Syncfusion.Blazor.SfPdfViewer/scripts/syncfusion-blazor-sfpdfviewer.min.js" type="text/javascript"></script>
Add Blazor PDF Viewer component
Add the Syncfusion Blazor PDF Viewer component in Components/Pages/Home.razor file and run the application..
@using Syncfusion.Blazor.SfPdfViewer
@rendermode InteractiveServer
<SfPdfViewer2 DocumentPath="https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf"
Height="100%"
Width="100%">
</SfPdfViewer2>
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.
Loading controls…
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.
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.
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
Short, task-first walkthroughs.
Need help getting started?
Explore our resources or reach out to our support team for assistance.
Product Updates
Technical Support
AI Solutions
Syncfusion Studio for your desktop.
One small download. Browse every product, download samples and binaries, and set up your IDE and AI assistant.