Merge pull request #294 from matthewmoto/fix_pdftotext_errors
Fixing error sentinel for pdftotext when the PDF has no text (scanned…
This commit is contained in:
1 file changed
+1
-1
@@ -235,6 +235,6 @@ def get_text_from_pdf(pdf_file):
|
||||
try:
|
||||
pdf = pdftotext.PDF(f)
|
||||
except pdftotext.Error:
|
||||
return False
|
||||
return ""
|
||||
|
||||
return "\n".join(pdf)
|
||||
Reference in new issue
Block a user