PDF Multipage OCR Bugfix

Fixed a bug that prevented muti page pdfs from being ocr'd