From a8dc72349bb668815532f8e9283a0ba3e4d94378 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?= Date: Sun, 4 Feb 2024 05:28:47 +0100 Subject: [PATCH] extfs-pdf: add a file extension for FlateDecode It is recognised by shared-mime-info. --- cmd/extfs-pdf/main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/extfs-pdf/main.go b/cmd/extfs-pdf/main.go index e368df1..eab3e2b 100644 --- a/cmd/extfs-pdf/main.go +++ b/cmd/extfs-pdf/main.go @@ -1,5 +1,5 @@ // -// Copyright (c) 2021, Přemysl Eric Janouch +// Copyright (c) 2021 - 2024, Přemysl Eric Janouch // // Permission to use, copy, modify, and/or distribute this software for any // purpose with or without fee is hereby granted. @@ -46,6 +46,8 @@ func streamSuffix(o *pdf.Object) string { return "jp2" case "DCTDecode": return "jpg" + case "FlateDecode": + return "zz" default: return filter.String }