Re:NSPrintInfo will not accept paper format wider than high?
Re:NSPrintInfo will not accept paper format wider than high?
- Subject: Re:NSPrintInfo will not accept paper format wider than high?
- From: Shripada Hebbar <email@hidden>
- Date: Fri, 28 Dec 2007 09:56:37 +0530
[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:
This email sent to email@hidden