Use ASP.NET Core file results to return PDF bytes or streams with the application/pdf content type. Here are controller, Minimal API, and range-processing examples.
The post How to Return a PDF File from a C# Web API appeared first on iTechGuides.
This is a companion discussion topic for the original entry at https://www.itechguides.com/how-to-return-a-pdf-file-from-a-c-web-api/