galkahana / HummusJS

Node.js module for high performance creation, modification and parsing of PDF files and streams
http://www.pdfhummus.com
Other
1.14k stars 169 forks source link

Create PdfRStreamForBuffer.js #202

Closed lucis closed 6 years ago

surendra-y commented 6 years ago

Nice that is what is required for my issue #221 . @galkahana Can yiou please merge this.

Thank you.

galkahana commented 6 years ago

There's a bug here where in the read method the "amount" returned is not limited by the buffer size. this results in large outputs when used as source for reading and copying. This note is for whoever uses this as code example.

galkahana commented 6 years ago

thanks. im gonna fix it so reading doesnt read too much, to take care of later complaints.