• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re:NSPrintInfo will not accept paper format wider than high?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Scripting Bridge && filteredArrayUsingPredicate
  • Next by Date: Re: Predicates
  • Previous by thread: NSPrintInfo will not accept paper format wider than high?
  • Next by thread: saving an object reference
  • Index(es):
    • Date
    • Thread