Skip to content

Commit

Permalink
Import Documents sanitizes pdfs
Browse files Browse the repository at this point in the history
  • Loading branch information
ajdapretnar committed Jun 7, 2019
1 parent 6020e1b commit 1cb10e2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions orangecontrib/text/import_documents.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,7 @@ def read_file(self):
for lt_obj in layout:
if isinstance(lt_obj, LTTextBox) or isinstance(lt_obj, LTTextLine):
extracted_text.append(lt_obj.get_text())
self.content = ' '.join(extracted_text)

self.content = ' '.join(extracted_text).replace('\x00', '')

class XmlReader(Reader):
ext = [".xml"]
Expand Down

0 comments on commit 1cb10e2

Please sign in to comment.