We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8923f1c + 95740e0 commit f85f11bCopy full SHA for f85f11b
1 file changed
TextSpitter/core.py
@@ -52,7 +52,7 @@ def PdfFileRead(self):
52
import fitz
53
54
pdf_file = fitz.Document(stream=contents, filetype="pdf")
55
- raw_text = [ele.getText("text") for ele in pdf_file]
+ raw_text = [ele.get_text("text") for ele in pdf_file]
56
text = "".join(raw_text)
57
# else:
58
except Exception:
0 commit comments