1- // Copyright 2019-2025 Chris Mohan, Jaben Cargman
1+ // Copyright 2019-2025 Chris Mohan, Jaben Cargman
22// and GotenbergSharpApiClient Contributors
33//
44// Licensed under the Apache License, Version 2.0 (the "License");
@@ -18,18 +18,23 @@ namespace Gotenberg.Sharp.API.Client.Domain.Requests;
1818public static class MergeOfficeConstants
1919{
2020 /// <summary>
21- /// Source is here: https://github.com/gotenberg/gotenberg/blob/main/pkg/modules/libreoffice/uno/uno.go
21+ /// Docs are here: https://gotenberg.dev/docs/routes#office-documents-into-pdfs-route
22+ /// Last updated 2/12/2025
2223 /// </summary>
2324 public static readonly string [ ] AllowedExtensions =
24- {
25- ".bib" , ".doc" , ".xml" , ".docx" , ".fodt" , ".html" , ".ltx" , ".txt" , ".odt" ,
26- ".ott" , ".pdb" , ".pdf" , ".psw" , ".rtf" , ".sdw" , ".stw" , ".sxw" , ".uot" ,
27- ".vor" , ".wps" , ".epub" , ".png" , ".bmp" , ".emf" , ".eps" , ".fodg" , ".gif" ,
28- ".jpg" , ".jpeg" , ".met" , ".odd" , ".otg" , ".pbm" , ".pct" , ".pgm" , ".ppm" ,
29- ".ras" , ".std" , ".svg" , ".svm" , ".swf" , ".sxd" , ".sxw" , ".tif" , ".tiff" ,
30- ".xhtml" , ".xpm" , ".odp" , ".fodp" , ".potm" , ".pot" , ".pptx" , ".pps" , ".ppt" ,
31- ".pwp" , ".sda" , ".sdd" , ".sti" , ".sxi" , ".uop" , ".wmf" , ".csv" , ".dbf" , ".dif" ,
32- ".fods" , ".ods" , ".ots" , ".pxl" , ".sdc" , ".slk" , ".stc" , ".sxc" , ".uos" , ".xls" , ".xlt" ,
33- ".xlsx"
34- } ;
25+ [
26+ ".123" , ".602" , ".abw" , ".bib" , ".bmp" , ".cdr" , ".cgm" , ".cmx" , ".csv" , ".cwk" ,
27+ ".dbf" , ".dif" , ".doc" , ".docm" , ".docx" , ".dot" , ".dotm" , ".dotx" , ".dxf" , ".emf" ,
28+ ".eps" , ".epub" , ".fodg" , ".fodp" , ".fods" , ".fodt" , ".fopd" , ".gif" , ".htm" , ".html" ,
29+ ".hwp" , ".jpeg" , ".jpg" , ".key" , ".ltx" , ".lwp" , ".mcw" , ".met" , ".mml" , ".mw" ,
30+ ".numbers" , ".odd" , ".odg" , ".odm" , ".odp" , ".ods" , ".odt" , ".otg" , ".oth" , ".otp" ,
31+ ".ots" , ".ott" , ".pages" , ".pbm" , ".pcd" , ".pct" , ".pcx" , ".pdb" , ".pdf" , ".pgm" ,
32+ ".png" , ".pot" , ".potm" , ".potx" , ".ppm" , ".pps" , ".ppt" , ".pptm" , ".pptx" , ".psd" ,
33+ ".psw" , ".pub" , ".pwp" , ".pxl" , ".ras" , ".rtf" , ".sda" , ".sdc" , ".sdd" , ".sdp" ,
34+ ".sdw" , ".sgl" , ".slk" , ".smf" , ".stc" , ".std" , ".sti" , ".stw" , ".svg" , ".svm" ,
35+ ".swf" , ".sxc" , ".sxd" , ".sxg" , ".sxi" , ".sxm" , ".sxw" , ".tga" , ".tif" , ".tiff" ,
36+ ".txt" , ".uof" , ".uop" , ".uos" , ".uot" , ".vdx" , ".vor" , ".vsd" , ".vsdm" , ".vsdx" ,
37+ ".wb2" , ".wk1" , ".wks" , ".wmf" , ".wpd" , ".wpg" , ".wps" , ".xbm" , ".xhtml" , ".xls" ,
38+ ".xlsb" , ".xlsm" , ".xlsx" , ".xlt" , ".xltm" , ".xltx" , ".xlw" , ".xml" , ".xpm" , ".zabw"
39+ ] ;
3540}
0 commit comments