Skip to content

Enhance PdfViewer download functionality#1288

Merged
gvreddy04 merged 1 commit into
mainfrom
features/base64-pdf-download
Jun 22, 2026
Merged

Enhance PdfViewer download functionality#1288
gvreddy04 merged 1 commit into
mainfrom
features/base64-pdf-download

Conversation

@gvreddy04

Copy link
Copy Markdown
Contributor

Refactored the DownloadPdf implementation in PdfViewer.razor.cs and PdfViewerJsInterop.cs to support downloading PDFs from both base64 data and validated URLs. Added error handling for empty URLs and introduced unique filename generation for downloads. Updated JavaScript functions in blazor.bootstrap.pdf.js to align with the new interop methods and improve maintainability.

Refactored the `DownloadPdf` implementation in `PdfViewer.razor.cs` and `PdfViewerJsInterop.cs` to support downloading PDFs from both base64 data and validated URLs. Added error handling for empty URLs and introduced unique filename generation for downloads. Updated JavaScript functions in `blazor.bootstrap.pdf.js` to align with the new interop methods and improve maintainability.
@gvreddy04 gvreddy04 added this to the 4.0.0 milestone Jun 22, 2026
@gvreddy04 gvreddy04 self-assigned this Jun 22, 2026
@gvreddy04 gvreddy04 merged commit 716331d into main Jun 22, 2026
1 of 3 checks passed
@gvreddy04 gvreddy04 deleted the features/base64-pdf-download branch June 22, 2026 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant