xref: /freebsd/contrib/file/magic/Magdir/pdf (revision 2f513db7)
1
2#------------------------------------------------------------------------------
3# $File: pdf,v 1.11 2019/09/12 15:53:49 christos Exp $
4# pdf:  file(1) magic for Portable Document Format
5#
6
70	string		%PDF-		PDF document
8!:mime	application/pdf
9!:strength +60
10>5	byte		x		\b, version %c
11>7	byte		x		\b.%c
12
130	string		\012%PDF-	PDF document
14!:mime	application/pdf
15!:strength +60
16>6	byte		x		\b, version %c
17>8	byte		x		\b.%c
18
190	string		\xef\xbb\xbf%PDF-	PDF document (UTF-8)
20!:mime	application/pdf
21!:strength +60
22>6	byte		x		\b, version %c
23>8	byte		x		\b.%c
24
25# From: Nick Schmalenberger <nick@schmalenberger.us>
26# Forms Data Format
270       string          %FDF-           FDF document
28!:mime application/vnd.fdf
29!:strength +60
30>5      byte            x               \b, version %c
31>7      byte            x               \b.%c
32
330	search/256	%PDF-		PDF document
34!:mime	application/pdf
35!:strength +60
36>&0	byte		x		\b, version %c
37>&2	byte		x		\b.%c
38