I created a PDF of a website using puppeteer from a link provided by the client, and now I need to send back as response the stream code/ octet stream / binary data of this pdf, I am unsure how to do that can someone help me
I have the PDF stored locally in the same folder as my js file
Just use
in KOA.
This will automatically send the pdf file as an application/octet-stream.