Syncfusion.AspNetCore.PdfViewer
34.2.8
Prefix Reserved
dotnet add package Syncfusion.AspNetCore.PdfViewer --version 34.2.8
NuGet\Install-Package Syncfusion.AspNetCore.PdfViewer -Version 34.2.8
<PackageReference Include="Syncfusion.AspNetCore.PdfViewer" Version="34.2.8" />
<PackageVersion Include="Syncfusion.AspNetCore.PdfViewer" Version="34.2.8" />
<PackageReference Include="Syncfusion.AspNetCore.PdfViewer" />
paket add Syncfusion.AspNetCore.PdfViewer --version 34.2.8
#r "nuget: Syncfusion.AspNetCore.PdfViewer, 34.2.8"
#:package Syncfusion.AspNetCore.PdfViewer@34.2.8
#addin nuget:?package=Syncfusion.AspNetCore.PdfViewer&version=34.2.8
#tool nuget:?package=Syncfusion.AspNetCore.PdfViewer&version=34.2.8
Syncfusion® ASP.NET Core PDF Viewer Component
A web-based PDF viewing, annotation, and printing solution that works directly in the browser without requiring third-party plugins.
Using this package with an AI coding agent
Before generating Syncfusion code, ask your AI coding agent to run the Syncfusion setup using the following 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 skill pack, MCP status, and any required licensing action.The setup detects your project’s platform and loads the appropriate Syncfusion skill pack. No Syncfusion account or MCP key is required to install or read Syncfusion agent skills.
Platform reference: https://ai.syncfusion.com/aspnet-core/llms.txt
Key Features
- High-Fidelity Rendering: Renders PDF pages with high fidelity using server-side rendering engine
- Text Operations: Text selection, search, and copy functionality for document interaction
- Annotation Tools: Comprehensive annotation including sticky notes, highlights, underlines, strikethrough, shapes, stamps, and free text
- Form Filling: Support for standard PDF form filling and submission
- Navigation: Thumbnail view, bookmarks, and hyperlink navigation for quick document traversal
- View Controls: Print, zoom, and page rotation for flexible document viewing
- Digital Signatures: Digital signature support for signing documents securely
- Performance: Optimized rendering for fast document loading and smooth scrolling
- Responsive Design: Adapts to different screen sizes and devices
- Accessibility: Full keyboard navigation and screen reader support
Common Setup
1. Install NuGet Package
Install-Package Syncfusion.AspNetCore.PdfViewer
2. Register Tag Helper
Add to ~/Pages/_ViewImports.cshtml or ~/Views/_ViewImports.cshtml:
@addTagHelper *, Syncfusion.AspNetCore.Base
@addTagHelper *, Syncfusion.AspNetCore.PdfViewer
3. Add Stylesheet & Script References
In your layout file:
<head>
<link rel="stylesheet" href="_content/Syncfusion.AspNetCore.Themes/styles/fluent2.css" />
<script src="_content/Syncfusion.AspNetCore.PdfViewer/scripts/sf-pdfviewer.min.js"></script>
</head>
4. Register Script Manager
<ejs-scripts></ejs-scripts>
Quick Start
Step 1: ~/Pages/Index.cshtml.cs
public class IndexModel : PageModel
{
public string PdfDocumentPath { get; set; }
public void OnGet()
{
// Use your PDF file path or URL
PdfDocumentPath = "https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf";
}
}
Step 2: ~/Pages/Index.cshtml
<div id="pdfViewerContainer" style="height: 600px;">
<ejs-pdfviewer id="pdfviewer"
documentPath="@Model.PdfDocumentPath"
enablePrint="true"
enableAnnotation="true"
enableDownload="true">
</ejs-pdfviewer>
</div>
Step 3: Run the Application
Press Ctrl+F5 to run the application in your browser.
Documentation
Support
License
This is a commercial product and requires a paid license for possession or use. Review the Syncfusion® EULA
About Syncfusion®
Syncfusion® provides 1600+ UI components and frameworks for web, mobile, and desktop development across multiple platforms:
Web: Blazor | ASP.NET Core | ASP.NET MVC | JavaScript | Angular | React | Vue
Desktop: WinForms | WPF | WinUI
Learn more at www.syncfusion.com
sales@syncfusion.com | Toll Free: 1-888-9-DOTNET
Founded in 2001 and headquartered in Research Triangle Park, N.C., Syncfusion® has more than 29,000 customers and more than 1 million users, including large financial institutions, Fortune 500 companies, and global IT consultancies.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Newtonsoft.Json (>= 13.0.4)
- Syncfusion.AspNetCore.Base (>= 34.2.8)
- Syncfusion.AspNetCore.Buttons (>= 34.2.8)
- Syncfusion.AspNetCore.DropDowns (>= 34.2.8)
- Syncfusion.AspNetCore.InPlaceEditor (>= 34.2.8)
- Syncfusion.AspNetCore.Inputs (>= 34.2.8)
- Syncfusion.AspNetCore.Lists (>= 34.2.8)
- Syncfusion.AspNetCore.Navigations (>= 34.2.8)
- Syncfusion.AspNetCore.Notifications (>= 34.2.8)
- Syncfusion.AspNetCore.Popups (>= 34.2.8)
- Syncfusion.AspNetCore.SplitButtons (>= 34.2.8)
- Syncfusion.Licensing (>= 34.2.8)
-
net8.0
- Newtonsoft.Json (>= 13.0.4)
- Syncfusion.AspNetCore.Base (>= 34.2.8)
- Syncfusion.AspNetCore.Buttons (>= 34.2.8)
- Syncfusion.AspNetCore.DropDowns (>= 34.2.8)
- Syncfusion.AspNetCore.InPlaceEditor (>= 34.2.8)
- Syncfusion.AspNetCore.Inputs (>= 34.2.8)
- Syncfusion.AspNetCore.Lists (>= 34.2.8)
- Syncfusion.AspNetCore.Navigations (>= 34.2.8)
- Syncfusion.AspNetCore.Notifications (>= 34.2.8)
- Syncfusion.AspNetCore.Popups (>= 34.2.8)
- Syncfusion.AspNetCore.SplitButtons (>= 34.2.8)
- Syncfusion.Licensing (>= 34.2.8)
-
net9.0
- Newtonsoft.Json (>= 13.0.4)
- Syncfusion.AspNetCore.Base (>= 34.2.8)
- Syncfusion.AspNetCore.Buttons (>= 34.2.8)
- Syncfusion.AspNetCore.DropDowns (>= 34.2.8)
- Syncfusion.AspNetCore.InPlaceEditor (>= 34.2.8)
- Syncfusion.AspNetCore.Inputs (>= 34.2.8)
- Syncfusion.AspNetCore.Lists (>= 34.2.8)
- Syncfusion.AspNetCore.Navigations (>= 34.2.8)
- Syncfusion.AspNetCore.Notifications (>= 34.2.8)
- Syncfusion.AspNetCore.Popups (>= 34.2.8)
- Syncfusion.AspNetCore.SplitButtons (>= 34.2.8)
- Syncfusion.Licensing (>= 34.2.8)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.