Update app.py
Browse files
app.py
CHANGED
|
@@ -65,7 +65,7 @@ from PIL import Image
|
|
| 65 |
# return all_page_text
|
| 66 |
def read_pdf_with_pdfplumber(file):
|
| 67 |
all_page_text=""
|
| 68 |
-
|
| 69 |
page = pdf.pages[0]
|
| 70 |
#return page.extract_text()
|
| 71 |
# get co-ordinates to cr
|
|
|
|
| 65 |
# return all_page_text
|
| 66 |
def read_pdf_with_pdfplumber(file):
|
| 67 |
all_page_text=""
|
| 68 |
+
with pdfplumber.open(file) as pdf:
|
| 69 |
page = pdf.pages[0]
|
| 70 |
#return page.extract_text()
|
| 71 |
# get co-ordinates to cr
|