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