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 14, 2019
1 parent 6020e1b commit cba4552
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion orangecontrib/text/import_documents.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +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):
Expand Down

0 comments on commit cba4552

Please sign in to comment.