Refactors getDocument and adds PDFDataRangeTransport.