xref: /freebsd/contrib/file/magic/Magdir/pdf (revision d38c30c092828f4882ce13b08d0bd3fd6dc7afb5)
1b6cee71dSXin LI
2b6cee71dSXin LI#------------------------------------------------------------------------------
3*d38c30c0SXin LI# $File: pdf,v 1.11 2019/09/12 15:53:49 christos Exp $
4b6cee71dSXin LI# pdf:  file(1) magic for Portable Document Format
5b6cee71dSXin LI#
6b6cee71dSXin LI
7b6cee71dSXin LI0	string		%PDF-		PDF document
8b6cee71dSXin LI!:mime	application/pdf
92dc4dbb9SEitan Adler!:strength +60
10b6cee71dSXin LI>5	byte		x		\b, version %c
11b6cee71dSXin LI>7	byte		x		\b.%c
12b6cee71dSXin LI
135f0216bdSXin LI0	string		\012%PDF-	PDF document
145f0216bdSXin LI!:mime	application/pdf
152dc4dbb9SEitan Adler!:strength +60
165f0216bdSXin LI>6	byte		x		\b, version %c
175f0216bdSXin LI>8	byte		x		\b.%c
185f0216bdSXin LI
19*d38c30c0SXin LI0	string		\xef\xbb\xbf%PDF-	PDF document (UTF-8)
20*d38c30c0SXin LI!:mime	application/pdf
21*d38c30c0SXin LI!:strength +60
22*d38c30c0SXin LI>6	byte		x		\b, version %c
23*d38c30c0SXin LI>8	byte		x		\b.%c
24*d38c30c0SXin LI
25b6cee71dSXin LI# From: Nick Schmalenberger <nick@schmalenberger.us>
26b6cee71dSXin LI# Forms Data Format
27b6cee71dSXin LI0       string          %FDF-           FDF document
28b6cee71dSXin LI!:mime application/vnd.fdf
292dc4dbb9SEitan Adler!:strength +60
30b6cee71dSXin LI>5      byte            x               \b, version %c
31b6cee71dSXin LI>7      byte            x               \b.%c
3240427ccaSGordon Tetlow
3340427ccaSGordon Tetlow0	search/256	%PDF-		PDF document
3440427ccaSGordon Tetlow!:mime	application/pdf
352dc4dbb9SEitan Adler!:strength +60
3640427ccaSGordon Tetlow>&0	byte		x		\b, version %c
3740427ccaSGordon Tetlow>&2	byte		x		\b.%c
38