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
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user