Refactors PdfDataLister buffering.
Merge pull request #5402 from yurydelendik/streammem

Refactors PdfDataLister buffering.