diff --git a/core.js b/core.js index ae1bea62..0526f31b 100644 --- a/core.js +++ b/core.js @@ -59,6 +59,11 @@ function getFileTypeFromMimeType(mimeType) { ext: 'docx', mime: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', }; + case 'application/vnd.openxmlformats-officedocument.presentationml.template': + return { + ext: 'potx', + mime: 'application/vnd.openxmlformats-officedocument.presentationml.template', + }; case 'application/vnd.openxmlformats-officedocument.presentationml.presentation': return { ext: 'pptx', diff --git a/fixture/fixture.potx b/fixture/fixture.potx new file mode 100644 index 00000000..c83cd145 Binary files /dev/null and b/fixture/fixture.potx differ diff --git a/package.json b/package.json index 72a1b0e0..9c296e4c 100644 --- a/package.json +++ b/package.json @@ -219,7 +219,8 @@ "vtt", "apk", "drc", - "lz4" + "lz4", + "potx" ], "dependencies": { "@tokenizer/inflate": "^0.2.6", diff --git a/readme.md b/readme.md index 01f81af5..76560a38 100644 --- a/readme.md +++ b/readme.md @@ -529,6 +529,7 @@ abortController.abort(); // Abort file-type reading from the Blob stream. - [`pdf`](https://en.wikipedia.org/wiki/Portable_Document_Format) - Portable Document Format - [`pgp`](https://en.wikipedia.org/wiki/Pretty_Good_Privacy) - Pretty Good Privacy - [`png`](https://en.wikipedia.org/wiki/Portable_Network_Graphics) - Portable Network Graphics +- [`potx`](https://en.wikipedia.org/wiki/List_of_Microsoft_Office_filename_extensions) - Microsoft Powerpoint template - [`pptx`](https://en.wikipedia.org/wiki/Office_Open_XML) - Microsoft Powerpoint document - [`ps`](https://en.wikipedia.org/wiki/Postscript) - Postscript - [`psd`](https://en.wikipedia.org/wiki/Adobe_Photoshop#File_format) - Adobe Photoshop document diff --git a/supported.js b/supported.js index de560c1e..a13e6050 100644 --- a/supported.js +++ b/supported.js @@ -156,6 +156,7 @@ export const extensions = [ 'apk', 'drc', 'lz4', + 'potx', ]; export const mimeTypes = [ @@ -311,4 +312,5 @@ export const mimeTypes = [ 'application/vnd.android.package-archive', 'application/vnd.google.draco', // Invented by us 'application/x-lz4', // Invented by us + 'application/vnd.openxmlformats-officedocument.presentationml.template', ];