xref: /freebsd/contrib/file/magic/Magdir/pdf (revision 52c2bb75163559a6e2866ad374a7de67a4ea1273)
1
2#------------------------------------------------------------------------------
3# $File: pdf,v 1.10 2018/05/23 22:21:01 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
19# From: Nick Schmalenberger <nick@schmalenberger.us>
20# Forms Data Format
210       string          %FDF-           FDF document
22!:mime application/vnd.fdf
23!:strength +60
24>5      byte            x               \b, version %c
25>7      byte            x               \b.%c
26
270	search/256	%PDF-		PDF document
28!:mime	application/pdf
29!:strength +60
30>&0	byte		x		\b, version %c
31>&2	byte		x		\b.%c
32