A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
Workaround for all PDFminer.six issues.
jonaswinkler814d90745b19
diff --git a/src/paperless_tesseract/parsers.py b/src/paperless_tesseract/parsers.pyindex be8f45e7b..c6cd392d8 100644--- a/src/paperless_tesseract/parsers.py+++ b/src/paperless_tesseract/parsers.py@@ -121,7 +121,12 @@ class RasterisedDocumentParser(DocumentParser):self.log("debug", f"Extracted text from PDF file {pdf_file}")return stripped- except PDFException:+ except Exception:+ # TODO catch all for various issues with PDFminer.six.+ # If PDFminer fails, fall back to OCR.+ self.log("warn",+ "Error while getting text from PDF document with "+ "pdfminer.six", exc_info=True)# probably not a PDF file.return None