Re: Printing multiple images each on a separate page using single NSPrintOperation
Re: Printing multiple images each on a separate page using single NSPrintOperation
- Subject: Re: Printing multiple images each on a separate page using single NSPrintOperation
- From: Martin Wierschin <email@hidden>
- Date: Mon, 07 Nov 2011 15:21:01 -0800
> Now when I have multiple pages to print, I would like to print all of them using a single NSPrintOperation. So basically, I would like to insert NSImage/NSImageView of each page as a separate page into a single NSView and use this NSView to print finally using NSPrintOperation.
That approach will work just fine. Make a NSView subclass that contains all your pages/NSImageViews and have that subclass override the necessary custom pagination methods (eg: -knowsPageRange:). Then just create a NSPrintOperation for that big NSView. See:
http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/Printing/Concepts/pagination.html#//apple_ref/doc/uid/20001051-BBCHHAHI
~Martin
_______________________________________________
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