PejmanNik/puppeteer-report

Use a readable stream

ozanbaskan opened this issue · 3 comments

Instead of returning the raw pdf there could be an option to return a readable stream.

if you don't pass the path property to pdf method, it will return a byte array

#36

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.

oh I see, as this project uses Puppeteer for creating PDFs, I can't do anything about it until Puppeteer supports this