From 08c9e4a4e349c4a6b22a304ced330e753f2ef6aa Mon Sep 17 00:00:00 2001 From: Mathias Behrle Date: Sat, 13 Sep 2014 18:40:00 +0200 Subject: [PATCH] Adding more office MIME types to office_converter. - Without those types the graphics backend will throw 'Unkwon file format' on OCR. - S.a. http://stackoverflow.com/questions/4212861/what-is-a-correct-mime-type-for-docx-pptx-etc --- mayan/apps/converter/office_converter.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/mayan/apps/converter/office_converter.py b/mayan/apps/converter/office_converter.py index acf6d6bc25..c92bc85a07 100644 --- a/mayan/apps/converter/office_converter.py +++ b/mayan/apps/converter/office_converter.py @@ -19,6 +19,8 @@ CONVERTER_OFFICE_FILE_MIMETYPES = [ u'application/msexcel', u'application/pgp-keys', u'application/vnd.ms-excel', + u'application/vnd.ms-excel.addin.macroEnabled.12', + u'application/vnd.ms-excel.sheet.binary.macroEnabled.12', u'application/vnd.ms-powerpoint', u'application/vnd.oasis.opendocument.chart', u'application/vnd.oasis.opendocument.chart-template', @@ -30,7 +32,14 @@ CONVERTER_OFFICE_FILE_MIMETYPES = [ u'application/vnd.oasis.opendocument.image-template', u'application/vnd.oasis.opendocument.presentation', u'application/vnd.oasis.opendocument.presentation-template', + u'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', + u'application/vnd.openxmlformats-officedocument.spreadsheetml.template', + u'application/vnd.openxmlformats-officedocument.presentationml.template', + u'application/vnd.openxmlformats-officedocument.presentationml.slideshow', + u'application/vnd.openxmlformats-officedocument.presentationml.presentation', + u'application/vnd.openxmlformats-officedocument.presentationml.slide', u'application/vnd.openxmlformats-officedocument.wordprocessingml.document', + u'application/vnd.openxmlformats-officedocument.wordprocessingml.template', u'application/vnd.oasis.opendocument.spreadsheet', u'application/vnd.oasis.opendocument.spreadsheet-template', u'application/vnd.oasis.opendocument.text',