Refactors getDocument and adds PDFDataRangeTransport.

Fixed