From a4f0f6774e6365636edd4859dd9de6bdf719939d Mon Sep 17 00:00:00 2001 From: Sylvain Mina Date: Tue, 24 Dec 2024 16:10:19 +0100 Subject: [PATCH] Add support for POTX --- core.js | 5 +++++ fixture/fixture.potx | Bin 0 -> 27805 bytes package.json | 3 ++- readme.md | 3 ++- supported.js | 2 ++ 5 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 fixture/fixture.potx 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 0000000000000000000000000000000000000000..c83cd1450b0e1d9ebef0b64f273b962a3b857528 GIT binary patch literal 27805 zcmeFZV|?UowzeI1+_8<0ZFSPIZQHhO+qRu_(y?vZcBf;$b@%L<=bk25hHEn0^*F4=41QEJ19jGKh2|$MMS4fB zM>oY*rGVy!!ihX;D!L5I-G*^~b(dp;<|(+cN@f{pI>qsDf?>a7V8AywKHZ{80JjmU z5!V@pcx~Obu~#+&iKU@xTFdtV9ju>E-};`rh8hNXpysFsj;0NTyhxb_UFgQMu)>z2 ze1V`~jJY>7`wR-L`zjKmf9MjxdF6)}m4GQ2)4S6#OcAaTvCes&s4_S>mgN17r7usC zkm-b^B+*rlT7`k%x(qDTf$&ZRxXaH~i0vv+M7?)_&ty#zW|fLzfw^tRl!)9OFRRXb z?b2a~)W0n7Aq!zVC<8KfQ>e5$gN~nK?wDK~m3v3BXR$&%R@>}hBRnllw*#W0$J$xH z=uM^A+E+3Jm=PCz*b#?7f$m#z0#KSXs39jzY}wprM9Thz_Fp<897QP?Kr9QN7fl{d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QiAK^!=M599h(R>m=s z8^nQgzc8*!ZDrh#j0Sn&Od`yq+vESEPB5nhBaJ~GI0Xgs40Zm6w`5{~LlrR3Xg?Eg zq2My9|4e0f$xGexwYOZKiM(v>WvzCk1;D`Sfc~Upwb1ex_*-%WKj14 z31FuhCb(MsAS~)zgW+Iv5)Lo5`VqdURSAZJ4Kz61!20j=U))Xu0gIbda5x*Aj1ALW z%-=05FnaOLH*@sw_Ds)FDf=; AMgRZ+ literal 0 HcmV?d00001 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..e619d027 100644 --- a/readme.md +++ b/readme.md @@ -529,7 +529,8 @@ 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 -- [`pptx`](https://en.wikipedia.org/wiki/Office_Open_XML) - Microsoft Powerpoint document +- [`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 - [`pst`](https://en.wikipedia.org/wiki/Personal_Storage_Table) - Personal Storage Table file 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', ];