Merged
Conversation
Enhanced the `PdfViewer` component to support password-protected PDFs and improved error handling for document loading. Key changes include: - Added a `Password` parameter to the `PdfViewer` component and updated the `OnAfterRenderAsync` method to pass it to JavaScript interop. - Introduced the `OnDocumentLoadError` event callback to handle document loading errors. - Updated `blazor.bootstrap.pdf.js` to support password prompts and handle password-related exceptions. - Modified `PdfViewer_Demo_01_Examples.razor` to test password-protected PDFs with a local file path. - Added a sample encrypted PDF (`pdf_password_protected.pdf`) for testing. - Improved metadata and font handling in the sample PDF. - Enhanced code robustness with null checks and better documentation. NOTE: This commit message is auto-generated using GitHub Copilot.
Replaced the local file path in the `Url` property of the `<PdfViewer>` component with a publicly accessible URL pointing to a hosted PDF file on GitHub. This ensures the PDF file can be viewed in environments where the local file path is inaccessible. NOTE: This commit message is auto-generated using GitHub Copilot.
Contributor
Author
Contributor
Author
Updated `<img>` tags in the documentation to include valid GitHub-hosted URLs. Added examples for handling password-protected PDFs in the `<PdfViewer>` component, including setting the `Password` parameter and prompting users for a password. Enhanced `alt` attributes for better visual representation of features. NOTE: This commit message is auto-generated using GitHub Copilot.
This was referenced Nov 24, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


No description provided.