NSPrintInfo is a data container for parameters that help control the generation of PostScript output. It is passed to the NSPrintOperation object, which makes a copy of it to use during the operation.
*/
#import <Foundation/NSObject.h>
#import <AppKit/NSGraphics.h>
#import <AppKit/AppKitDefines.h>
@class NSPrinter;
typedef enum _NSPrintingOrientation {
NSPortraitOrientation = 0,
NSLandscapeOrientation = 1
} NSPrintingOrientation;
typedef enum _NSPrintingPaginationMode {
NSAutoPagination = 0,
NSFitPagination = 1, // Force image to fit on one page
NSClipPagination = 2 // Let image be clipped by page
/* Set/get the paper attributes. The set methods in this group may change other values in the group to keep all three values (type, size, and orientation) consistent. To avoid this behavior, set the values in the dictionary directly.
/* Called when a print operation is about to start. It allows this object to set default values for any keys that are not already set.
*/
- (void)setUpPrintOperationDefaultValues;
/* The dictionary containing the key/values for this object.
*/
- (NSMutableDictionary *)dictionary;
/* Create a PrintInfo from an existing NSDictionary. Designated initializer.
*/
- (id)initWithDictionary:(NSDictionary *)aDict;
/* Set/get the shared PrintInfo instance. This defines the settings for the PageLayout panel and print operations that will be used if no PrintInfo is specified for those operations. This PrintInfo instance can be thought of as being "shared" among documents in the app. This should never be set to nil.