We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9439add commit 44c7a0eCopy full SHA for 44c7a0e
src/unstructured_client/_hooks/custom/pdf_utils.py
@@ -69,6 +69,7 @@ def is_pdf(file: shared.Files) -> bool:
69
content = cast(bytes, file.content)
70
PdfReader(io.BytesIO(content), strict=True)
71
except (PdfReadError, UnicodeDecodeError):
72
+ logger.info("Loading PDF failed, so splitting is not enabled.")
73
return False
74
75
return True
0 commit comments