Skip to content

Commit 4e3c77c

Browse files
committed
Add missing office filetype extension and types
1 parent a8305cd commit 4e3c77c

1 file changed

Lines changed: 34 additions & 1 deletion

File tree

src/filingcabinet/pdf_utils.py

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,46 @@
3939
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
4040
"text/rtf",
4141
"application/rtf",
42+
"application/vnd.ms-powerpoint",
43+
"application/vnd.openxmlformats-officedocument.presentationml.presentation",
4244
)
4345
OFFICE_EXTENSIONS = (
46+
".rtf",
47+
# Word
4448
".doc",
49+
".dot",
50+
".wbk",
4551
".docx",
4652
".docm",
53+
".dotx",
54+
".dotm",
55+
".docb",
4756
".odt",
48-
".rtf",
57+
# Powerpoint
58+
".pptx",
59+
".pptm",
60+
".ppt",
61+
".potx",
62+
".potm",
63+
".pot",
64+
".ppsx",
65+
".ppsm",
66+
".pps",
67+
# Excel
68+
".xlsx",
69+
".xlsm",
70+
".xlsb",
71+
".xltx",
72+
".xltm",
73+
".xls",
74+
".xlt",
75+
".xls",
76+
".xml",
77+
".xml",
78+
".xlam",
79+
".xla",
80+
".xlw",
81+
".xlr",
4982
)
5083

5184

0 commit comments

Comments
 (0)