MAUI Integration

The MAUI WebView does not support loading the required PDF worker JS file via relative URLs. In order to mitigate this additional configuration is required.

Worker File

Grab a copy of the pdf worker file from the Blazor PDF repo and put in the wwwroot folder of your project.

UseProjectWorker

You will need to set 'UseProjectWorker' to 'true' when configuring Blazor PDF in your Startup.cs file

builder.Services.AddBlazorPdfViewer(opt => 
{
    opt.UseProjectWorker = true
});

Sample

See the sample application for a working example

An unhandled error has occurred. Reload 🗙