Skip to content

Commit

Permalink
Update OfficeConverter.php
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnyworm authored Jan 15, 2018
1 parent 937eb37 commit 16d1cf1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/OfficeConverter/OfficeConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ private function getAllowedConverter($extension = null)
'pdf' => ['pdf'],
'docx' => ['pdf', 'odt', 'html'],
'doc' => ['pdf', 'odt', 'html'],
'wps' => ['pdf', 'odt', 'html'],
'dotx' => ['pdf', 'odt', 'html'],
'docm' => ['pdf', 'odt', 'html'],
'dotm' => ['pdf', 'odt', 'html'],
Expand All @@ -169,6 +170,7 @@ private function getAllowedConverter($extension = null)
'PDF' => ['pdf'],
'DOCX' => ['pdf', 'odt', 'html'],
'DOC' => ['pdf', 'odt', 'html'],
'WPS' => ['pdf', 'odt', 'html'],
'DOTX' => ['pdf', 'odt', 'html'],
'DOCM' => ['pdf', 'odt', 'html'],
'DOTM' => ['pdf', 'odt', 'html'],
Expand All @@ -179,11 +181,13 @@ private function getAllowedConverter($extension = null)
'PNG' => ['pdf'],
'JPG' => ['pdf'],
'JPEG' => ['pdf'],
'JFIF' => ['pdf'],
'Pptx' => ['pdf'],
'Ppt' => ['pdf'],
'Pdf' => ['pdf'],
'Docx' => ['pdf', 'odt', 'html'],
'Doc' => ['pdf', 'odt', 'html'],
'Wps' => ['pdf', 'odt', 'html'],
'Dotx' => ['pdf', 'odt', 'html'],
'Docm' => ['pdf', 'odt', 'html'],
'Dotm' => ['pdf', 'odt', 'html'],
Expand All @@ -194,6 +198,7 @@ private function getAllowedConverter($extension = null)
'Png' => ['pdf'],
'Jpg' => ['pdf'],
'Jpeg' => ['pdf'],
'Jfif' => ['pdf'],
];

if ($extension !== null) {
Expand Down

0 comments on commit 16d1cf1

Please sign in to comment.