Revision: 13680
http://sourceforge.net/p/skim-app/code/13680
Author: hofman
Date: 2023-10-17 21:24:44 +0000 (Tue, 17 Oct 2023)
Log Message:
-----------
Don't set landscape mode for landscape pdfs. This should better be handled by
automatic rotation.
Modified Paths:
--------------
trunk/SKMainDocument.m
Modified: trunk/SKMainDocument.m
===================================================================
--- trunk/SKMainDocument.m 2023-10-16 22:01:19 UTC (rev 13679)
+++ trunk/SKMainDocument.m 2023-10-17 21:24:44 UTC (rev 13680)
@@ -1025,13 +1025,6 @@
NSPrintInfo *printInfo = [[[self printInfo] copy] autorelease];
PDFDocument *pdfDoc = [self pdfDocument];
- if ([pdfDoc pageCount]) {
- PDFPage *page = [pdfDoc pageAtIndex:0];
- NSSize pageSize = [page boundsForBox:kPDFDisplayBoxMediaBox].size;
- BOOL isLandscape = [page rotation] % 180 == 90 ? pageSize.height >
pageSize.width : pageSize.width > pageSize.height;
- [printInfo setOrientation:isLandscape ? NSPaperOrientationLandscape :
NSPaperOrientationPortrait];
- }
-
[[printInfo dictionary] addEntriesFromDictionary:printSettings];
NSPrintOperation *printOperation = [pdfDoc
printOperationForPrintInfo:printInfo scalingMode:kPDFPrintPageScaleNone
autoRotate:YES];
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