Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -41,7 +41,7 @@ def convert(pdf_file):
41
  ocrmypdf.ocr(pdf_file, out_pdf_file, force_ocr=True)
42
 
43
  # Re-extract text
44
- reader = PdfReader(pdf_file)
45
  full_text = extract_text_from_pdf(reader)
46
 
47
  return full_text, metadata
 
41
  ocrmypdf.ocr(pdf_file, out_pdf_file, force_ocr=True)
42
 
43
  # Re-extract text
44
+ reader = PdfReader(out_pdf_file)
45
  full_text = extract_text_from_pdf(reader)
46
 
47
  return full_text, metadata