Refactors getDocument and adds PDFDataRangeTransport.

Nit: copy-and-paste error in the function name `RenderTask` -> `PDFDocumentLoadingTask`.