aboutsummaryrefslogtreecommitdiff
path: root/cmd/extfs-pdf
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2024-02-04 05:28:47 +0100
committerPřemysl Eric Janouch <p@janouch.name>2024-02-04 06:03:58 +0100
commita8dc72349bb668815532f8e9283a0ba3e4d94378 (patch)
tree8c94f2fa6e5ebebe1848cf95e4e331597d6db341 /cmd/extfs-pdf
parent32e9acfa776e7474a83f171c63a6859e2e363efe (diff)
downloadpdf-simple-sign-a8dc72349bb668815532f8e9283a0ba3e4d94378.tar.gz
pdf-simple-sign-a8dc72349bb668815532f8e9283a0ba3e4d94378.tar.xz
pdf-simple-sign-a8dc72349bb668815532f8e9283a0ba3e4d94378.zip
extfs-pdf: add a file extension for FlateDecode
It is recognised by shared-mime-info.
Diffstat (limited to 'cmd/extfs-pdf')
-rw-r--r--cmd/extfs-pdf/main.go4
1 files changed, 3 insertions, 1 deletions
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 <p@janouch.name>
+// Copyright (c) 2021 - 2024, Přemysl Eric Janouch <p@janouch.name>
//
// 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
}