Reference SfPdfViewer scripts in a Blazor application

17 Jul 20261 minute to read

CDN Usage

Use a CDN to include the scripts quickly without local files. For setup details, see the CDN reference.

NuGet static web assets

Reference scripts from the NuGet package via static web assets. For more details, see static web assets.

Custom Resource Generator

To create a custom bundle, use the Custom Resource Generator to include only the required modules. When referencing scripts externally, also deploy pdfium.js and pdfium.wasm in the app and ensure paths are correct.

Script references and pdfium files for Blazor SfPdfViewer

See also