handling pdfs seperatly from ocr, changed to download type rather than t...

...ext