Refactors PdfDataLister buffering.