Add support for XPS

This commit is contained in:
Milan Nikolic
2023-09-07 21:43:31 +02:00
parent 9bd7193124
commit 63ad96ac3a
2 changed files with 2 additions and 2 deletions

View File

@@ -1397,7 +1397,7 @@ func (c *Convertor) isArchive(f string) bool {
// isDocument checks if file is document.
func (c *Convertor) isDocument(f string) bool {
var types = []string{".pdf", ".epub", ".mobi"}
var types = []string{".pdf", ".xps", ".epub", ".mobi"}
for _, t := range types {
if strings.ToLower(filepath.Ext(f)) == t {
return true