Update Services/Service_File.py
Browse files- Services/Service_File.py +2 -2
Services/Service_File.py
CHANGED
@@ -40,9 +40,9 @@ class Service_File:
|
|
40 |
|
41 |
def pdf_to_string(self, file):
|
42 |
string = ""
|
43 |
-
with fitz.open(stream=file.getvalue()) as doc:
|
44 |
for page in doc:
|
45 |
-
string += page.get_text()
|
46 |
return string
|
47 |
|
48 |
def word_to_string(self, file):
|
|
|
40 |
|
41 |
def pdf_to_string(self, file):
|
42 |
string = ""
|
43 |
+
with fitz.open("pdf",stream=file.getvalue()) as doc:
|
44 |
for page in doc:
|
45 |
+
string += str(page.get_text())
|
46 |
return string
|
47 |
|
48 |
def word_to_string(self, file):
|