• 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: Printing a view + landscape printing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Printing a view + landscape printing


  • Subject: Re: Printing a view + landscape printing
  • From: Kyle Sluder <email@hidden>
  • Date: Tue, 22 Jan 2013 07:49:55 -0800

On Tue, Jan 22, 2013, at 02:20 AM, Jean Suisse wrote:
> Now, the result fits one page, in landscape mode. However, the
> aspect/ratio of the view remains the same as displayed on screen.
> How can I change the size (bounds) of the view and its subview but for
> printing only ? I could stretch the result, but the text on the graphics
> would appear stretched. ..

1. Implement -knowsPageRange: and -rectForPage: and do all the
pagination yourself.

2. Create a new instance of your view offscreen with the appropriate
dimensions and print _that_.

--Kyle Sluder
_______________________________________________

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

References: 
 >Printing a view + landscape printing (From: Jean Suisse <email@hidden>)
 >Re: Printing a view + landscape printing (From: Keary Suska <email@hidden>)
 >Re: Printing a view + landscape printing (From: Jean Suisse <email@hidden>)
 >Re: Printing a view + landscape printing (From: Graham Cox <email@hidden>)
 >Re: Printing a view + landscape printing (From: Jean Suisse <email@hidden>)

  • Prev by Date: Re: How can I get rid of this warning message?
  • Next by Date: How do I use CGDisplayCapture() to capture an NSOpenGLView in a XIB?
  • Previous by thread: Re: Printing a view + landscape printing
  • Next by thread: How to avoid warning?
  • Index(es):
    • Date
    • Thread