Refactors getDocument and adds PDFDataRangeTransport.

fixed