Blazor Server

How do I save a PDF in Blazor Server?

To save a PDF in Blazor Server, you can convert the PDF document stream to a byte array, and then pass that to a JavaScript function to download.