xref: /dragonfly/contrib/file/magic/Magdir/pdf (revision a444603f)
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
70	name	pdf
8>8	search/512	/Filter/FlateDecode/	(password protected)
9
100	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
170	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
240	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
330       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
390	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
45