aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/libmagic/magic/Magdir/pdf
diff options
context:
space:
mode:
authorrobot-piglet <robot-piglet@yandex-team.com>2023-12-02 01:45:21 +0300
committerrobot-piglet <robot-piglet@yandex-team.com>2023-12-02 02:42:50 +0300
commit9c43d58f75cf086b744cf4fe2ae180e8f37e4a0c (patch)
tree9f88a486917d371d099cd712efd91b4c122d209d /contrib/libs/libmagic/magic/Magdir/pdf
parent32fb6dda1feb24f9ab69ece5df0cb9ec238ca5e6 (diff)
downloadydb-9c43d58f75cf086b744cf4fe2ae180e8f37e4a0c.tar.gz
Intermediate changes
Diffstat (limited to 'contrib/libs/libmagic/magic/Magdir/pdf')
-rw-r--r--contrib/libs/libmagic/magic/Magdir/pdf51
1 files changed, 51 insertions, 0 deletions
diff --git a/contrib/libs/libmagic/magic/Magdir/pdf b/contrib/libs/libmagic/magic/Magdir/pdf
new file mode 100644
index 0000000000..7a99d8d3cf
--- /dev/null
+++ b/contrib/libs/libmagic/magic/Magdir/pdf
@@ -0,0 +1,51 @@
+
+#------------------------------------------------------------------------------
+# $File: pdf,v 1.18 2023/07/17 15:57:18 christos Exp $
+# pdf: file(1) magic for Portable Document Format
+#
+
+0 name pdf
+>8 search /Count
+>>&0 regex [0-9]+ \b, %s page(s)
+>8 search/512 /Filter/FlateDecode/ (zip deflate encoded)
+
+0 string %PDF- PDF document
+!:mime application/pdf
+!:strength +60
+!:ext pdf
+>5 byte x \b, version %c
+>7 byte x \b.%c
+>0 use pdf
+
+0 string \012%PDF- PDF document
+!:mime application/pdf
+!:strength +60
+!:ext pdf
+>6 byte x \b, version %c
+>8 byte x \b.%c
+>0 use pdf
+
+0 string \xef\xbb\xbf%PDF- PDF document (UTF-8)
+!:mime application/pdf
+!:strength +60
+!:ext pdf
+>6 byte x \b, version %c
+>8 byte x \b.%c
+>0 use pdf
+
+# From: Nick Schmalenberger <nick@schmalenberger.us>
+# Forms Data Format
+0 string %FDF- FDF document
+!:mime application/vnd.fdf
+!:strength +60
+!:ext pdf
+>5 byte x \b, version %c
+>7 byte x \b.%c
+
+0 search/1024 %PDF- PDF document
+!:mime application/pdf
+!:strength +60
+!:ext pdf
+>&0 byte x \b, version %c
+>&2 byte x \b.%c
+>0 use pdf