Spaces:
Running
Running
robertselvam
commited on
Commit
•
afcf7a1
1
Parent(s):
c6ba66d
Update pdftojson.py
Browse files- pdftojson.py +1 -1
pdftojson.py
CHANGED
@@ -58,7 +58,7 @@ class PdftoJson:
|
|
58 |
try:
|
59 |
|
60 |
# Open the PDF file in binary read mode
|
61 |
-
with open(pdf_path, "rb") as pdf_file:
|
62 |
# Create a PDF reader object
|
63 |
pdf_reader = PyPDF2.PdfReader(pdf_file)
|
64 |
|
|
|
58 |
try:
|
59 |
|
60 |
# Open the PDF file in binary read mode
|
61 |
+
with open(pdf_path.name, "rb") as pdf_file:
|
62 |
# Create a PDF reader object
|
63 |
pdf_reader = PyPDF2.PdfReader(pdf_file)
|
64 |
|