mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-07 23:35:22 +01:00
Fixing error sentinel for pdftotext when the PDF has no text (scanned images). It was causing a crash previously.
This commit is contained in:
parent
5c59120c57
commit
ce98019b49
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue