Revision: 2874
          http://skim-app.svn.sourceforge.net/skim-app/?rev=2874&view=rev
Author:   hofman
Date:     2007-09-09 17:09:03 -0700 (Sun, 09 Sep 2007)

Log Message:
-----------
Order of keys in FDF dictionary. 

Modified Paths:
--------------
    trunk/SKPDFAnnotationNote.m

Modified: trunk/SKPDFAnnotationNote.m
===================================================================
--- trunk/SKPDFAnnotationNote.m 2007-09-09 23:20:10 UTC (rev 2873)
+++ trunk/SKPDFAnnotationNote.m 2007-09-10 00:09:03 UTC (rev 2874)
@@ -228,20 +228,15 @@
     NSRect bounds = [self bounds];
     float r, g, b, a = 0.0;
     PDFBorder *border = [self border];
+    NSString *contents = [self contents];
     [[self color] getRed:&r green:&g blue:&b alpha:&a];
     [string appendString:@"/Type/Annot/Subtype/"];
     [string appendString:[[self type] isEqualToString:@"Note"] ? @"Text" : 
[self type]];
-    [string appendString:@"/Contents("];
-    [string appendString:[self contents] ? [[self contents] 
stringByEscapingParenthesis] : @""];
-    if ([self text]) {
-        [string appendString:@"\n"];
-        [string appendString:[[[self text] string] 
stringByEscapingParenthesis]];
-    }
-    [string appendString:@")"];
     [string appendFormat:@"/Rect[%f %f %f %f]", NSMinX(bounds), 
NSMinY(bounds), NSMaxX(bounds), NSMaxY(bounds)];
+    [string appendFormat:@"/Page %i", [self pageIndex]];
+    [string appendString:@"/F 4"];
     if (a > 0.0)
         [string appendFormat:@"/C[%f %f %f]", r, g, b];
-    [string appendFormat:@"/Page %i", [self pageIndex]];
     if (border) {
         [string appendFormat:@"/BS<</W %f/S", [border lineWidth]];
         switch ([border style]) {
@@ -264,6 +259,13 @@
         [string appendFormat:@"/[EMAIL PROTECTED]", [[[border dashPattern] 
valueForKey:@"stringValue"] componentsJoinedByString:@" "]];
         [string appendString:@">>"];
     }
+    [string appendString:@"/Contents("];
+    [string appendString:contents ? [contents stringByEscapingParenthesis] : 
@""];
+    if ([self text]) {
+        [string appendString:@"\n"];
+        [string appendString:[[[self text] string] 
stringByEscapingParenthesis]];
+    }
+    [string appendString:@")"];
     return string;
 }
 


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

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to