You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/05-components/pdf-viewer.mdx
+40Lines changed: 40 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,13 +20,15 @@ The Blazor PDF Viewer component allows users to view PDF files directly in the b
20
20
| Name | Type | Default | Required | Description | Added Version |
21
21
|:--|:--|:--|:--|:--|:--|
22
22
| Orientation | `Orientation` | `Orientation.Portrait` | | Gets or sets the preferred orientation for the PDF viewer. | 2.1.0 |
23
+
| Password | string | null | | Gets or sets the password required to open password-protected PDF documents. | 3.5.0 |
23
24
| Url | string | null | ✔️ | Gets or sets the URL of the PDF document to be displayed. PDF Viewer component supports base64 string as a URL. | 1.11.0 |
24
25
25
26
## Callback Events
26
27
27
28
| Event | Description | Added Version |
28
29
|:--|:--|:--|
29
30
| OnDocumentLoaded | This event fires immediately after the PDF document is loaded. | 1.11.0 |
31
+
| OnDocumentLoadError | This event fires if there is an error loading the PDF document. | 3.5.0 |
30
32
| OnPageChanged | This event fires immediately after the page is changed. | 1.11.0 |
31
33
32
34
## Examples
@@ -148,3 +150,41 @@ Below screenshot is added for demo purposes only. For additional info, refer to
If the <code>Password</code> parameter is not set and the PDF document is password-protected, the PDF Viewer component will prompt the user to enter the password.
171
+
In the following example, the PDF Viewer prompts the user to enter the password for the protected PDF document. Enter <b>12345</b> as the password to view the document.
172
+
173
+
<img src="" alt="Blazor Bootstrap: Blazor PDF Viewer Component - Prompt for password" />
0 commit comments