Overview of Blazor SfPdfViewer Component
14 Jul 20235 minutes to read
The new Blazor SfPdfViewer component allows users to view, edit, print, and download PDF files without the web service dependency in Blazor applications. It is designed to be fast and responsive and comes with the same feature set as the previous PDF Viewer. It is easy to use and can be integrated into both Blazor Server and WASM applications with minimal effort.
The Blazor SfPdfViewer component shares the same key features as the Blazor PDF Viewer component, but this new component has some advantages over the old component.
We have enhanced the performance in rendering, scrolling, zooming, panning, and printing.
Elimination of Service Dependency
The old PDF viewer component required a separate Service URL to load the document. However, in the NextGen PDF Viewer, we have eliminated the need for a service URL. Now, the document can be loaded offline without making a service call.
In the previous component, we had different packages for different operating systems such as Windows, Linux, and OSX. In the NextGen version, we have introduced common packages that work across all environments.
Reduced Server Calls
The old PDF viewer component required numerous C# calls to retrieve document information such as text on the page, hyperlinks, and page images. In the NextGen PDF Viewer, we have shifted these functionalities to the client side, resulting in improved performance.
Some of the key features are listed below
- Accurate and reliable rendering of PDF pages.
- Provides easy page navigation with,
- Core interactions
- Print PDF file.
- Annotate PDF with different types of annotations such as,
- Handwritten Signature
Supported Features: Desktop vs Mobile
The table below provides a list of supported and non-supported features on both desktop and mobile devices.
|Opening file different origin||Yes||Yes|
|Saving a file to a different origin||Yes||Yes|
|Hand Written Signature||Yes||Yes|
|Annotation property editing||Yes||No|
|Add annotation through touch||Yes||No|
|From fields rendering||Yes||Yes|
Enable desktop mode on mobile devices using the EnableDesktopMode property to view the toolbar as in desktop.
Syncfusion provides the SfPdfViewer component for both Blazor Server and Blazor WebAssembly applications.
For both Blazor WebAssembly App and Blazor Server App use SfPdfViewer component in Syncfusion.Blazor.SfPdfViewer NuGet package. This component will not requires server-side processing to render the PDF files through web service.
* For Windows, Linux and Mac (OSX) uses the sample Nuget Syncfusion.Blazor.SfPdfViewer
You can refer to the Blazor SfPdfViewer feature tour page for its groundbreaking feature representations. You can also explore the Blazor SfPdfViewer example to understand how to explain core features of PDF Viewer.