Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re:NSPrintInfo will not accept paper format wider than high?




[printInfo setPaperSize:NSMakeSize(2088, 1570.5)]; [printInfo setOrientation:NSPortraitOrientation];
You are really trying to print a landscape image. But are using wrong orientation.
Try using 'NSLandscapeOrientation' instead of 'NSPortraitOrientation'.


OK, so NSPrintInfo documentation for "setPaperSize:" claims:

	This method may change either the paper name or orientation for
consistency.
Thats why you happen to see your width and height getting automatically swapped to
fit the definition of the NSPortraitOrientation. Portrait is called so because its width is less than equal
to its height and the landscape vice versa.



Regards Shripada

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.