[haiku-commits] haiku: hrev50062 - src/data/mime_db/application

  • From: "" <dmarc-noreply@xxxxxxxxxxxxx> (Redacted sender "humdingerb" for DMARC)
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Thu, 28 Jan 2016 17:14:05 +0100 (CET)

hrev50062 adds 1 changeset to branch 'master'
old head: d6d5874afe4170e5e7da6356609d35c50f2a3588
new head: 82fbf1b3b6b6f32642c9abf6111a403759302357
overview: 
http://cgit.haiku-os.org/haiku/log/?qt=range&q=82fbf1b3b6b6+%5Ed6d5874afe41

----------------------------------------------------------------------------

82fbf1b3b6b6: 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.

                                        [ Humdinger <humdingerb@xxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev50062
Commit:      82fbf1b3b6b6f32642c9abf6111a403759302357
URL:         http://cgit.haiku-os.org/haiku/commit/?id=82fbf1b3b6b6
Author:      Humdinger <humdingerb@xxxxxxxxx>
Date:        Wed Jan 27 16:22:20 2016 UTC

----------------------------------------------------------------------------

1 file changed, 71 insertions(+), 1 deletion(-)
src/data/mime_db/application/pdf | 72 +++++++++++++++++++++++++++++++++++-

----------------------------------------------------------------------------

diff --git a/src/data/mime_db/application/pdf b/src/data/mime_db/application/pdf
index aecdeda..7594162 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"
+};


Other related posts:

  • » [haiku-commits] haiku: hrev50062 - src/data/mime_db/application