Refactors PdfDataLister buffering.

Fixes #5400
chunkLength fixed

this.buffer replaced by buffer