Traceback (most recent call last): File "/usr/src/app/tasks/ocr_ap/ocr_ap.py", line 195, in _run_ocr _download_ocr_and_upload_document(id_) File "/usr/src/app/tasks/ocr_ap/ocr_ap.py", line 75, in _download_ocr_and_upload_document _ocr(file_.name, file_.name) File "/usr/src/app/tasks/ocr_ap/ocr_ap.py", line 55, 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 374, in run_pipeline exec_concurrent(context, executor) File "/usr/local/lib/python3.9/site-packages/ocrmypdf/_sync.py", line 271, in exec_concurrent executor( File "/usr/local/lib/python3.9/site-packages/ocrmypdf/_concurrent.py", line 82, in __call__ self._execute( File "/usr/local/lib/python3.9/site-packages/ocrmypdf/builtin_plugins/concurrency.py", line 134, in _execute task_finished(result, pbar) File "/usr/local/lib/python3.9/site-packages/ocrmypdf/_sync.py", line 261, in update_page ocrgraft.graft_page( File "/usr/local/lib/python3.9/site-packages/ocrmypdf/_graft.py", line 148, in graft_page self._graft_text_layer( File "/usr/local/lib/python3.9/site-packages/ocrmypdf/_graft.py", line 310, in _graft_text_layer base_page.page_contents_add(new_text_layer, prepend=True) File "/usr/local/lib/python3.9/site-packages/pikepdf/_methods.py", line 1143, in __getattr__ return getattr(self.obj, name) AttributeError: page_contents_add