Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

thumbnail generation

jonaswinklerb2e0a8c88401
diff --git a/src/paperless_text/parsers.py b/src/paperless_text/parsers.py
index 646c5c549..7e488ca37 100644
--- a/src/paperless_text/parsers.py
+++ b/src/paperless_text/parsers.py
@@ -17,8 +17,8 @@ class TextDocumentParser(DocumentParser):
def read_text():
with open(document_path, 'r') as src:
lines = [line.strip() for line in src.readlines()]
- text = "\n".join([line for line in lines[:50]])
- return text.replace('"', "'")
+ text = "\n".join(lines[:50])
+ return text
img = Image.new("RGB", (500, 700), color="white")
draw = ImageDraw.Draw(img)