vendor/file: upgrade from 5.38 to 5.39
[dragonfly.git] / contrib / file / magic / Magdir / pdf
1
2 #------------------------------------------------------------------------------
3 # $File: pdf,v 1.12 2020/01/30 01:48:44 christos Exp $
4 # pdf:  file(1) magic for Portable Document Format
5 #
6
7 0       name    pdf
8 >8      search/512      /Filter/FlateDecode/    (password protected)
9
10 0       string          %PDF-           PDF document
11 !:mime  application/pdf
12 !:strength +60
13 >5      byte            x               \b, version %c
14 >7      byte            x               \b.%c
15 >0      use             pdf
16
17 0       string          \012%PDF-       PDF document
18 !:mime  application/pdf
19 !:strength +60
20 >6      byte            x               \b, version %c
21 >8      byte            x               \b.%c
22 >0      use             pdf
23
24 0       string          \xef\xbb\xbf%PDF-       PDF document (UTF-8)
25 !:mime  application/pdf
26 !:strength +60
27 >6      byte            x               \b, version %c
28 >8      byte            x               \b.%c
29 >0      use             pdf
30
31 # From: Nick Schmalenberger <nick@schmalenberger.us>
32 # Forms Data Format
33 0       string          %FDF-           FDF document
34 !:mime application/vnd.fdf
35 !:strength +60
36 >5      byte            x               \b, version %c
37 >7      byte            x               \b.%c
38
39 0       search/256      %PDF-           PDF document
40 !:mime  application/pdf
41 !:strength +60
42 >&0     byte            x               \b, version %c
43 >&2     byte            x               \b.%c
44 >0      use             pdf