Skip to content

Commit 95740e0

Browse files
authored
getText is deprecated, updated to get_text
1 parent 4d665d7 commit 95740e0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

TextSpitter/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def PdfFileRead(self):
5252
import fitz
5353

5454
pdf_file = fitz.Document(stream=contents, filetype="pdf")
55-
raw_text = [ele.getText("text") for ele in pdf_file]
55+
raw_text = [ele.get_text("text") for ele in pdf_file]
5656
text = "".join(raw_text)
5757
# else:
5858
except Exception:

0 commit comments

Comments
 (0)