I am generating pdf document using pdfkit(nodejs module).i need to convert the pdfkit object to buffer and send response as attachment file without save a file in server.
i was using output function to achieve this:
pdfdocument.output(function(buffer){
return buffer;
});
pdfkit deprecated the output function.
so right now i dont know how to do any idea...