Reset pointer before attemping a conversion.

This commit is contained in:
Roberto Rosario
2015-10-07 03:17:02 -04:00
parent c9d9f90cac
commit a76a8b7e0a

View File

@@ -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)