Revision: 6737
http://skim-app.svn.sourceforge.net/skim-app/?rev=6737&view=rev
Author: hofman
Date: 2010-08-26 15:05:41 +0000 (Thu, 26 Aug 2010)
Log Message:
-----------
resize converted Text annotations relative to topleft point, as that's how
PDFKit resizes them when saving
Modified Paths:
--------------
trunk/SKNPDFAnnotationNote_SKExtensions.m
Modified: trunk/SKNPDFAnnotationNote_SKExtensions.m
===================================================================
--- trunk/SKNPDFAnnotationNote_SKExtensions.m 2010-08-26 12:25:46 UTC (rev
6736)
+++ trunk/SKNPDFAnnotationNote_SKExtensions.m 2010-08-26 15:05:41 UTC (rev
6737)
@@ -59,6 +59,7 @@
NSRect bounds = NSRectFromString([properties
objectForKey:SKNPDFAnnotationBoundsKey]);
NSString *contents = [properties
objectForKey:SKNPDFAnnotationContentsKey];
[mutableProperties setObject:SKNNoteString
forKey:SKNPDFAnnotationTypeKey];
+ bounds.origin.y = NSMaxY(bounds) - SKNPDFAnnotationNoteSize.height;
bounds.size = SKNPDFAnnotationNoteSize;
[mutableProperties setObject:NSStringFromRect(bounds)
forKey:SKNPDFAnnotationBoundsKey];
if (contents) {
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users
worldwide. Take advantage of special opportunities to increase revenue and
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit