Revision: 14337
          http://sourceforge.net/p/skim-app/code/14337
Author:   hofman
Date:     2024-06-12 16:29:38 +0000 (Wed, 12 Jun 2024)
Log Message:
-----------
no shadow for full size page thumbnail

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

Modified: trunk/PDFPage_SKExtensions.m
===================================================================
--- trunk/PDFPage_SKExtensions.m        2024-06-12 15:49:32 UTC (rev 14336)
+++ trunk/PDFPage_SKExtensions.m        2024-06-12 16:29:38 UTC (rev 14337)
@@ -223,8 +223,8 @@
 }
 
 - (NSAttributedString *)thumbnailAttachmentWithSize:(CGFloat)aSize {
-    NSBitmapImageRep *imageRep1 = [self bitmapImageRepWithSize:aSize scale:1.0 
forBox:kPDFDisplayBoxCropBox hasShadow:YES highlights:nil];
-    NSBitmapImageRep *imageRep2 = [self bitmapImageRepWithSize:aSize scale:2.0 
forBox:kPDFDisplayBoxCropBox hasShadow:YES highlights:nil];
+    NSBitmapImageRep *imageRep1 = [self bitmapImageRepWithSize:aSize scale:1.0 
forBox:kPDFDisplayBoxCropBox hasShadow:aSize > 0.0 highlights:nil];
+    NSBitmapImageRep *imageRep2 = [self bitmapImageRepWithSize:aSize scale:2.0 
forBox:kPDFDisplayBoxCropBox hasShadow:aSize > 0.0 highlights:nil];
     NSData *data = [NSBitmapImageRep 
TIFFRepresentationOfImageRepsInArray:@[imageRep1, imageRep2]];
     NSFileWrapper *wrapper = [[NSFileWrapper alloc] 
initRegularFileWithContents:data];
     NSString *filename = [NSString stringWithFormat:@"page_%lu.tiff", 
(unsigned long)([self pageIndex] + 1)];

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