Use a readable stream
ozanbaskan opened this issue · 3 comments
ozanbaskan commented
Instead of returning the raw pdf there could be an option to return a readable stream.
PejmanNik commented
if you don't pass the path property to pdf method, it will return a byte array
ozanbaskan commented
I am suggesting returning a readable stream so I can pipe it to the writable stream for the http connection so for larger pdf files I don't run out of memory.
PejmanNik commented
oh I see, as this project uses Puppeteer for creating PDFs, I can't do anything about it until Puppeteer supports this