From: Christos Zoulas Date: Thu, 12 Sep 2019 15:53:49 +0000 (+0000) Subject: PR/101: crocket: handle UTF-8 pdf with bom X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=00912bee524599318dfd27fc03cd8a421a7cb0f0;p=file PR/101: crocket: handle UTF-8 pdf with bom --- diff --git a/magic/Magdir/pdf b/magic/Magdir/pdf index 0a06dc9d..5a67e86b 100644 --- a/magic/Magdir/pdf +++ b/magic/Magdir/pdf @@ -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 # @@ -16,6 +16,12 @@ >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 # Forms Data Format 0 string %FDF- FDF document