PR/101: crocket: handle UTF-8 pdf with bom
authorChristos Zoulas <christos@zoulas.com>
Thu, 12 Sep 2019 15:53:49 +0000 (15:53 +0000)
committerChristos Zoulas <christos@zoulas.com>
Thu, 12 Sep 2019 15:53:49 +0000 (15:53 +0000)
magic/Magdir/pdf

index 0a06dc9d5a544be6a299423d54c10ac82edd349e..5a67e86b5c35476ebebb200323c4b12bacdce613 100644 (file)
@@ -1,6 +1,6 @@
 
 #------------------------------------------------------------------------------
-# $File: pdf,v 1.10 2018/05/23 22:21:01 christos Exp $
+# $File: pdf,v 1.11 2019/09/12 15:53:49 christos Exp $
 # pdf:  file(1) magic for Portable Document Format
 #
 
 >6     byte            x               \b, version %c
 >8     byte            x               \b.%c
 
+0      string          \xef\xbb\xbf%PDF-       PDF document (UTF-8)
+!:mime application/pdf
+!:strength +60
+>6     byte            x               \b, version %c
+>8     byte            x               \b.%c
+
 # From: Nick Schmalenberger <nick@schmalenberger.us>
 # Forms Data Format
 0       string          %FDF-           FDF document