From a76a8b7e0a94479ec93bc50380fa3ff022b84581 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Wed, 7 Oct 2015 03:17:02 -0400 Subject: [PATCH] Reset pointer before attemping a conversion. --- mayan/apps/converter/backends/python.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mayan/apps/converter/backends/python.py b/mayan/apps/converter/backends/python.py index 0b32d82827..da1e293557 100644 --- a/mayan/apps/converter/backends/python.py +++ b/mayan/apps/converter/backends/python.py @@ -51,7 +51,7 @@ class Python(ConverterBase): if self.mime_type == 'application/pdf' and pdftoppm: new_file_object, input_filepath = tempfile.mkstemp() - + self.file_object.seek(0) os.write(new_file_object, self.file_object.read()) self.file_object.seek(0)