Revision: 16597
http://sourceforge.net/p/skim-app/code/16597
Author: hofman
Date: 2026-10-03 17:37:18 +0000 (Sat, 03 Oct 2026)
Log Message:
-----------
do use device color space in /DA, as that should be the default in PDF
Modified Paths:
--------------
trunk/PDFAnnotation_SKExtensions.m
Modified: trunk/PDFAnnotation_SKExtensions.m
===================================================================
--- trunk/PDFAnnotation_SKExtensions.m 2026-10-03 17:31:03 UTC (rev 16596)
+++ trunk/PDFAnnotation_SKExtensions.m 2026-10-03 17:37:18 UTC (rev 16597)
@@ -480,10 +480,10 @@
[fdfString appendFDFName:SKFDFDefaultAppearanceKey];
NSColor *color = [self fontColor];
if ([[color colorSpace] colorSpaceModel] == NSGrayColorSpaceModel) {
- [[color colorUsingColorSpaceName:NSCalibratedWhiteColorSpace]
getWhite:&g alpha:&a];
+ [[color colorUsingColorSpaceName:NSDeviceWhiteColorSpace]
getWhite:&g alpha:&a];
[fdfString appendFormat:@"(/%@ %g Tf %g g)", [self fontName],
[self fontSize], g];
} else {
- [[color colorUsingColorSpaceName:NSCalibratedRGBColorSpace]
getRed:&r green:&g blue:&b alpha:&a];
+ [[color colorUsingColorSpaceName:NSDeviceRGBColorSpace] getRed:&r
green:&g blue:&b alpha:&a];
[fdfString appendFormat:@"(/%@ %g Tf %g %g %g rg)", [self
fontName], [self fontSize], r, g, b];
}
[fdfString appendFDFName:SKFDFAnnotationAlignmentKey];
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