Import file-5.32.
[dragonfly.git] / contrib / file / magic / Magdir / pdf
1
2 #------------------------------------------------------------------------------
3 # $File: pdf,v 1.9 2017/05/24 17:35:20 christos Exp $
4 # pdf:  file(1) magic for Portable Document Format
5 #
6
7 0       string          %PDF-           PDF document
8 !:mime  application/pdf
9 >5      byte            x               \b, version %c
10 >7      byte            x               \b.%c
11
12 0       string          \012%PDF-       PDF document
13 !:mime  application/pdf
14 >6      byte            x               \b, version %c
15 >8      byte            x               \b.%c
16
17 # From: Nick Schmalenberger <nick@schmalenberger.us>
18 # Forms Data Format
19 0       string          %FDF-           FDF document
20 !:mime application/vnd.fdf
21 >5      byte            x               \b, version %c
22 >7      byte            x               \b.%c
23
24 0       search/256      %PDF-           PDF document
25 !:mime  application/pdf
26 >&0     byte            x               \b, version %c
27 >&2     byte            x               \b.%c