Skip to main content
api/pdf/index.ts
This will take the incoming PDF from a service and forward the response to the User. Setting the Content-Disposition in this way will result in the PDF being downloaded. Removing attachment will serve the PDF in browser.