Revision: 5199
          http://skim-app.svn.sourceforge.net/skim-app/?rev=5199&view=rev
Author:   hofman
Date:     2009-02-07 23:22:42 +0000 (Sat, 07 Feb 2009)

Log Message:
-----------
remove importer support for pdf, because the system does not use it anyway.

Modified Paths:
--------------
    trunk/SkimImporter/GetMetadataForFile.m
    trunk/SkimImporter/Info.plist
    trunk/SkimImporter/schema.xml

Modified: trunk/SkimImporter/GetMetadataForFile.m
===================================================================
--- trunk/SkimImporter/GetMetadataForFile.m     2009-02-07 22:16:53 UTC (rev 
5198)
+++ trunk/SkimImporter/GetMetadataForFile.m     2009-02-07 23:22:42 UTC (rev 
5199)
@@ -77,9 +77,8 @@
     
     BOOL isSkimNotes = UTTypeConformsTo(contentTypeUTI, 
CFSTR("net.sourceforge.skim-app.skimnotes"));
     BOOL isPDFBundle = isSkimNotes == NO && UTTypeConformsTo(contentTypeUTI, 
CFSTR("net.sourceforge.skim-app.pdfd"));
-    BOOL isPDF = isSkimNotes == NO && isPDFBundle == NO && 
UTTypeConformsTo(contentTypeUTI, kUTTypePDF);
     NSFileManager *fm = [NSFileManager defaultManager];
-    Boolean success = [fm fileExistsAtPath:(NSString *)pathToFile] && 
(isSkimNotes || isPDFBundle || isPDF);
+    Boolean success = [fm fileExistsAtPath:(NSString *)pathToFile] && 
(isSkimNotes || isPDFBundle);
     
     if (success) {
         NSURL *fileURL = [NSURL fileURLWithPath:(NSString *)pathToFile];
@@ -91,9 +90,6 @@
         if (isSkimNotes) {
             notes = [fm readSkimNotesFromSkimFileAtURL:fileURL error:NULL];
             sourcePath = [[(NSString *)pathToFile 
stringByDeletingPathExtension] stringByAppendingPathExtension:@"pdf"];
-        } else if (isPDF) {
-            notes = [fm readSkimNotesFromExtendedAttributesAtURL:fileURL 
error:NULL];
-            GetTextAndAttributesForPDFFile(fileURL, &pdfText, &info);
         } else if (isPDFBundle) {
             notes = [fm readSkimNotesFromPDFBundleAtURL:fileURL error:NULL];
             NSString *textPath = [(NSString *)pathToFile 
stringByAppendingPathComponent:@"data.txt"];

Modified: trunk/SkimImporter/Info.plist
===================================================================
--- trunk/SkimImporter/Info.plist       2009-02-07 22:16:53 UTC (rev 5198)
+++ trunk/SkimImporter/Info.plist       2009-02-07 23:22:42 UTC (rev 5199)
@@ -11,7 +11,6 @@
                        <string>MDImporter</string>
                        <key>LSItemContentTypes</key>
                        <array>
-                               <string>com.adobe.pdf</string>
                                <string>net.sourceforge.skim-app.pdfd</string>
                                
<string>net.sourceforge.skim-app.skimnotes</string>
                        </array>

Modified: trunk/SkimImporter/schema.xml
===================================================================
--- trunk/SkimImporter/schema.xml       2009-02-07 22:16:53 UTC (rev 5198)
+++ trunk/SkimImporter/schema.xml       2009-02-07 23:22:42 UTC (rev 5199)
@@ -14,27 +14,6 @@
     </attributes>
 
     <types>
-        <type name="com.adobe.pdf">
-            <note>
-               The keys that this metadata importer handles.
-            </note>
-            <allattrs>
-                net_sourceforge_skim_app_notes
-                net_sourceforge_skim_app_dimensions
-            </allattrs>
-            <displayattrs>
-                kMDItemTitle
-                kMDItemAuthors
-                kMDItemCreator
-                kMDItemNumberOfPages
-                net_sourceforge_skim_app_dimensions
-                kMDItemVersion
-                kMDItemEncodingApplications
-                kMDItemSecurityMethod
-                kMDItemKeywords
-                net_sourceforge_skim_app_notes
-            </displayattrs>
-        </type>
         <type name="net.sourceforge.skim-app.pdfd">
             <note>
                The keys that this metadata importer handles.


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to