Configuration | Colours

The colour of the PDF background, toolbar and icons can be overridden with your preferred values. You can do this by passing in an instance of BlazorPdfColors to your PDF Viewer


<PdfViewer
    Colors="PdfColors"
    Url="https://raw.githubusercontent.com/mozilla/pdf.js/ba2edeae/web/compressed.tracemonkey-pldi-09.pdf"/>

@code {

    private BlazorPdfColors PdfColors { get; set; } = new()
    {
        Background = "#FF0000",
        Toolbar = "#00FF00",
        Icon = "#0000FF",
    };
}
An unhandled error has occurred. Reload 🗙