Revision: 16531
          http://sourceforge.net/p/skim-app/code/16531
Author:   hofman
Date:     2026-09-23 14:53:32 +0000 (Wed, 23 Sep 2026)
Log Message:
-----------
don't include dash pattern in FDF when the border is not dashed

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

Modified: trunk/PDFAnnotation_SKExtensions.m
===================================================================
--- trunk/PDFAnnotation_SKExtensions.m  2026-09-23 14:42:31 UTC (rev 16530)
+++ trunk/PDFAnnotation_SKExtensions.m  2026-09-23 14:53:32 UTC (rev 16531)
@@ -235,8 +235,10 @@
             [fdfString appendFormat:@" %f", [border lineWidth]];
             [fdfString appendFDFName:SKFDFAnnotationBorderStyleKey];
             [fdfString 
appendFDFName:SKFDFBorderStyleFromPDFBorderStyle([border style])];
-            [fdfString appendFDFName:SKFDFAnnotationDashPatternKey];
-            [fdfString appendFormat:@"[%@]", [[[border dashPattern] 
valueForKey:@"stringValue"] componentsJoinedByString:@" "]];
+            if ([border style] == kPDFBorderStyleDashed) {
+                [fdfString appendFDFName:SKFDFAnnotationDashPatternKey];
+                [fdfString appendFormat:@"[%@]", [[[border dashPattern] 
valueForKey:@"stringValue"] componentsJoinedByString:@" "]];
+            }
         } else {
             [fdfString appendFDFName:SKFDFAnnotationLineWidthKey];
             [fdfString appendString:@" 0.0"];

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



_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to