title: Pdfmake in node.js to download pdf to flutter application
body: <p>So what I exactly want to do is,
  Generate a pdf for an order in my order management system.</p>
  <p>I am using <strong>node.js</strong> as the backend and <strong>flutter</strong> as the front end.</p>
  <p>What I had in my mind is: Generate the pdf and store it on the server, return the link to the pdf to the flutter app and then download the pdf, but I don't want to store the pdf on the server, so when my flutter app calls the generatePdf endpoint using GET method, how can I send the pdf directly? Do I need to use res.download ? I am new to node.js and cannot understand the flow for downloading the file. Also, how do I need to change the request in my flutter app for the same?</p>
  <p><strong>Note:</strong> I am using <a href="https://pdfmake.github.io/docs/0.1/" rel="nofollow noreferrer">PDFMake</a> to generate the pdf.</p>