Blazor PDF Viewer

The Blazor PDF Viewer component allows users to view PDF files directly in the browser, without relying on third-party browser tools or extensions.

Examples #

Orientation #

Set the Orientation parameter to Orientation.Landscape to change the default orientation from Portrait to Landscape.

Base64String #

PDF Viewer component supports base64 string as a URL.
Example
Url="@string.Format("data:application/pdf;base64,{0}", pdfBase64String)"

RTL doc #

Below screenshot is added for demo purposes only. For additional info, refer to this link.
Blazor Bootstrap: Blazor PDF Viewer Component - RTL doc

Password protected #

To open a password-protected PDF document, set the Password parameter to the required password.

Prompt for password #

If the Password parameter is not set and the PDF document is password-protected, the PDF Viewer component will prompt the user to enter the password. In the following example, the PDF Viewer prompts the user to enter the password for the protected PDF document. Enter 12345 as the password to view the document.

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please reload the page.