From 032e1aba1287632641f420abf1ff7f199f34925d Mon Sep 17 00:00:00 2001 From: Dicklesworthstone Date: Tue, 21 May 2024 13:04:08 -0400 Subject: [PATCH] Fix --- service_functions.py | 1 + 1 file changed, 1 insertion(+) diff --git a/service_functions.py b/service_functions.py index ac00108..d2d7283 100644 --- a/service_functions.py +++ b/service_functions.py @@ -503,6 +503,7 @@ async def parse_submitted_document_file_into_sentence_strings_func(temp_file_pat else: try: if mime_type == 'application/pdf': + # Process PDF with pdfminer first content = textract.process(temp_file_path, method='pdfminer') else: content = textract.process(temp_file_path)