Quickstart

This will guide you through the required steps to get Mud PDF up and running.

Prerequisites

In order to use Mud PDF, your project will need to meet the following requirements

✅ .NET Version 8.0 or 9.0

✅ MudBlazor Version 8.0.0 or later

Installation

Grab the latest package from nuget.org

dotnet add package Gotho.MudBlazor.PdfViewer --version 2.0.0

Configuration

Add the following to your application startup in Program.cs

builder.Services.AddMudBlazorPdfViewer();

Update your App.razor file to import the required CSS.

<link href="_content/Gotho.MudBlazor.PdfViewer/mudpdf.min.css" rel="stylesheet"/>

Then, add the namespace to your _Imports.razor file.

@using MudBlazor.PdfViewer

You should now be able to use Mud PDF in your Project! 🚀

Usage

Below is a basic example of the minimum required to display a PDF document. See the rest of the documentation for full configuration options.

<MudPdfViewer Url="https://raw.githubusercontent.com/mozilla/pdf.js/ba2edeae/web/compressed.tracemonkey-pldi-09.pdf"/>
An unhandled error has occurred. Reload 🗙