Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/ocrmypdf/_pipeline.py", line 157, in get_pdfinfo return PdfInfo( File "/usr/local/lib/python3.9/site-packages/ocrmypdf/pdfinfo/info.py", line 897, in __init__ with Pdf.open(infile) as pdf: File "/usr/local/lib/python3.9/site-packages/pikepdf/_methods.py", line 908, in open pdf = Pdf._open( pikepdf._qpdf.PdfError: /tmp/ocrmypdf.io.nvgauafa/origin.pdf: unable to find trailer dictionary while recovering damaged file The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/src/app/tasks/ocr_ap/ocr_ap.py", line 182, in _run_ocr _download_ocr_and_upload_document(id_) File "/usr/src/app/tasks/ocr_ap/ocr_ap.py", line 61, in _download_ocr_and_upload_document _ocr(file_.name, file_.name) File "/usr/src/app/tasks/ocr_ap/ocr_ap.py", line 41, in _ocr ocr(input_filename, output_filename, language=['fra'], progress_bar=False, jobs=1) # type: ignore File "/usr/local/lib/python3.9/site-packages/ocrmypdf/api.py", line 340, in ocr return run_pipeline(options=options, plugin_manager=plugin_manager, api=True) File "/usr/local/lib/python3.9/site-packages/ocrmypdf/_sync.py", line 359, in run_pipeline pdfinfo = get_pdfinfo( File "/usr/local/lib/python3.9/site-packages/ocrmypdf/_pipeline.py", line 168, in get_pdfinfo raise InputFileError() from e ocrmypdf.exceptions.InputFileError