Skip to content

Commit f85f11b

Browse files
authored
Merge pull request #2 from shahid017/shahid017-patch-2
getText is deprecated, updated to get_text
2 parents 8923f1c + 95740e0 commit f85f11b

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)