Re: Printing a view + landscape printing
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