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

fix buffer reading #266

Closed galkahana closed 6 years ago

galkahana commented 6 years ago

two items corrected in original stream. one is that the reading amount is matched to the size of the buffer. in addition i moved to reading the thing to an array to save time on later reading.