From 82fbf1b3b6b6f32642c9abf6111a403759302357 Mon Sep 17 00:00:00 2001 From: Humdinger Date: Wed, 27 Jan 2016 17:22:20 +0100 Subject: [PATCH] Add the attributes BePDF creates to the PDF MIME type Providing these attributes by default makes sense. Other applications are more likely to use those as well instead of creating their own. --- src/data/mime_db/application/pdf | 72 +++++++++++++++++++++++++++++++- 1 file changed, 71 insertions(+), 1 deletion(-) diff --git a/src/data/mime_db/application/pdf b/src/data/mime_db/application/pdf index aecdedace1..7594162c46 100644 --- a/src/data/mime_db/application/pdf +++ b/src/data/mime_db/application/pdf @@ -3,7 +3,7 @@ resource(0, "BEOS:TYPE") #'MIMS' "application/x-vnd.Be-meta-mime"; resource(1, "META:TYPE") "application/pdf"; -resource(2, "META:SNIFF_RULE") "0.50 (\"%PDF\")"; +resource(2, "META:SNIFF_RULE") "0.50 (\"%PDF\")"; resource(3, "META:PREF_APP") #'MSIG' "application/x-vnd.mp-xpdf"; @@ -34,3 +34,73 @@ resource(6, "META:ICON") #'VICN' array { $"8100040A01010A1001178402040A06010A000A05040D0B0C0E1815FF01178222" $"04" }; + +resource(7, "META:ATTR_INFO") message(233) { + "attr:name" = "PDF:subject", + "attr:name" = "PDF:title", + "attr:name" = "PDF:creator", + "attr:name" = "PDF:author", + "attr:name" = "PDF:keywords", + "attr:name" = "PDF:producer", + "attr:name" = "PDF:created", + "attr:name" = "PDF:modified", + "attr:name" = "PDF:pages", + "attr:name" = "PDF:version", + "attr:name" = "PDF:linearized", + "attr:public_name" = "Subject", + "attr:public_name" = "Title", + "attr:public_name" = "Creator", + "attr:public_name" = "Author", + "attr:public_name" = "Keywords", + "attr:public_name" = "Producer", + "attr:public_name" = "Created", + "attr:public_name" = "Modified", + "attr:public_name" = "Pages", + "attr:public_name" = "Version", + "attr:public_name" = "Linearized", + "attr:type" = 'CSTR', + "attr:type" = 'CSTR', + "attr:type" = 'CSTR', + "attr:type" = 'CSTR', + "attr:type" = 'CSTR', + "attr:type" = 'CSTR', + "attr:type" = 'LONG', + "attr:type" = 'LONG', + "attr:type" = 'LONG', + "attr:type" = 'DBLE', + "attr:type" = 'BOOL', + "attr:viewable" = true, + "attr:viewable" = true, + "attr:viewable" = true, + "attr:viewable" = true, + "attr:viewable" = true, + "attr:viewable" = true, + "attr:viewable" = true, + "attr:viewable" = true, + "attr:viewable" = true, + "attr:viewable" = true, + "attr:viewable" = true, + "attr:editable" = true, + "attr:editable" = true, + "attr:editable" = true, + "attr:editable" = true, + "attr:editable" = true, + "attr:editable" = true, + "attr:editable" = false, + "attr:editable" = false, + "attr:editable" = false, + "attr:editable" = false, + "attr:editable" = false, + "attr:width" = 200, + "attr:width" = 200, + "attr:width" = 150, + "attr:width" = 150, + "attr:width" = 150, + "attr:width" = 150, + "attr:width" = 60, + "attr:width" = 60, + "attr:width" = 50, + "attr:width" = 70, + "attr:width" = 90, + "type" = "application/pdf" +};