Nodejs PDFkit write to response
I'm using PDFKit ( A PDF generation library for Node.js, pdfkit.org ) and
i want to send a pdf as the response to the client
# Write the PDF file to disk
doc.write('output.pdf');
above code write the PDF file to the disk, but I want it to send as the
response. How can I do it?
No comments:
Post a Comment