Andrei Shadrikov
commited on
Commit
·
1482457
1
Parent(s):
e7740fc
fix
Browse files
app.py
CHANGED
@@ -37,7 +37,7 @@ def extract_text(pdf_file):
|
|
37 |
"""
|
38 |
Generate a text rendering of a PDF file in the form of a list of lines.
|
39 |
"""
|
40 |
-
args = ['pdftotext', '-layout',
|
41 |
cp = sp.run(
|
42 |
args, stdout=sp.PIPE, stderr=sp.DEVNULL,
|
43 |
check=True, text=True
|
|
|
37 |
"""
|
38 |
Generate a text rendering of a PDF file in the form of a list of lines.
|
39 |
"""
|
40 |
+
args = ['pdftotext', '-layout', pdf_file, '-']
|
41 |
cp = sp.run(
|
42 |
args, stdout=sp.PIPE, stderr=sp.DEVNULL,
|
43 |
check=True, text=True
|