NSPrintInfo Class Reference
| Inherits from | |
| Conforms to | |
| Framework | /System/Library/Frameworks/AppKit.framework |
| Availability | Available in OS X v10.0 and later. |
| Companion guide | |
| Declared in | NSPrintInfo.h |
Overview
An NSPrintInfo object stores information that’s used to generate printed output. A shared NSPrintInfo object is automatically created for an application and is used by default for all printing jobs for that application.
The printing information in an NSPrintInfo object is stored in a dictionary. To access the standard attributes in the dictionary directly, this class defines a set of keys and provides the dictionary method. You can also initialize an instance of this class using the initWithDictionary: method.
You can use this dictionary to store custom information associated with a print job. Any non-object values should be stored as NSNumber or NSValue objects in the dictionary. See NSNumber Class Reference for a list of types which should be stored as numbers. For other non-object values, use the NSValue class.
Beginning with OS X v10.5, to store custom information that belongs in printing presets you should use the dictionary returned by the printSettings method.
Tasks
Initializing an NSPrintInfo
Managing the Shared NSPrintInfo
Managing the Printing Rectangle
-
– bottomMargin -
– imageablePageBounds -
– leftMargin -
– orientation -
– paperName -
– localizedPaperName -
– paperSize -
– rightMargin -
– setBottomMargin: -
– setLeftMargin: -
– setOrientation: -
– setPaperName: -
– setPaperSize: -
– setRightMargin: -
– setTopMargin: -
– topMargin
Pagination
Positioning the Image on the Page
Specifying the Printer
Controlling Printing
Accessing the Print Info Dictionary
Print Settings Convenience Methods
Accessing Core Printing Information
-
– printSettings -
– PMPrintSession -
– PMPageFormat -
– PMPrintSettings -
– updateFromPMPageFormat -
– updateFromPMPrintSettings
Deprecated Methods
-
+ defaultPrinter -
+ setDefaultPrinter:Deprecated in OS X v10.2 -
+ sizeForPaperName:Deprecated in OS X v10.2
Class Methods
defaultPrinter
Deprecated.
Availability
- Available in OS X v10.0 and later.
Declared In
NSPrintInfo.hsetSharedPrintInfo:
Sets the shared NSPrintInfo object to the specified object.
Parameters
- printInfo
The new shared printer information. This value must not be
nil.
Discussion
The shared NSPrintInfo object defines the settings for the NSPageLayout panel and print operations that will be used if no NSPrintInfo object is specified for those operations.
Availability
- Available in OS X v10.0 and later.
See Also
Declared In
NSPrintInfo.hsharedPrintInfo
Returns the shared NSPrintInfo object.
Return Value
The shared printer information.
Availability
- Available in OS X v10.0 and later.
See Also
Declared In
NSPrintInfo.hInstance Methods
bottomMargin
Returns the height of the bottom margin.
Return Value
The bottom margin, measured in points in the user coordinate space.
Availability
- Available in OS X v10.0 and later.
See Also
Declared In
NSPrintInfo.hdictionary
Returns the receiver’s dictionary that contains the printing attributes.
Discussion
The key-value pairs contained in the dictionary are described in “Constants.” Modifying the returned dictionary changes the receiver’s attributes.
This dictionary is key-value observing compliant.
Availability
- Available in OS X v10.0 and later.
Declared In
NSPrintInfo.hhorizontalPagination
Returns the horizontal pagination mode.
Return Value
One of the pagination modes described in “NSPrintingPaginationMode.”
Availability
- Available in OS X v10.0 and later.
Declared In
NSPrintInfo.himageablePageBounds
Returns the imageable area of a sheet of paper specified by the receiver.
Return Value
The imageable area, measured in points in the user coordinate space.
Discussion
This method takes into account the current printer, paper size, and orientation settings, but not scaling factors. “Imageable area” is the maximum area that can possibly be marked on by the printer hardware, not the area defined by the current margin settings.
The origin (0, 0) of the returned rectangle is in the lower-left corner of the oriented sheet. The imageable bounds may extend past the edges of the sheet when, for example, a printer driver specifies it so that borderless printing can be done reliably.
Availability
- Available in OS X v10.2 and later.
Declared In
NSPrintInfo.hinitWithDictionary:
Returns an NSPrintInfo object initialized with the parameters in the specified dictionary.
Parameters
- aDictionary
The possible key-value pairs contained in aDictionary are described in “Constants.”
Return Value
An initialized NSPrintInfo object, or nil if the object could not be created.
Discussion
This method is the designated initializer for this class. Non-object values should be stored in NSValue objects (or an appropriate subclass like NSNumber) in the dictionary. See NSNumber for a list of types which should be stored using the NSNumber class; otherwise use NSValue.
Availability
- Available in OS X v10.0 and later.
See Also
Declared In
NSPrintInfo.hisHorizontallyCentered
Returns a Boolean value indicating whether the image is centered horizontally.
Return Value
YES if the image is centered horizontally; otherwise, NO.
Availability
- Available in OS X v10.0 and later.
Declared In
NSPrintInfo.hisSelectionOnly
Returns whether only the currently selected contents should be printed.
Return Value
YES if only the currently selected contents should be printed, otherwise NO.
Discussion
This method is key-value observing compliant.
Availability
- Available in OS X v10.6 and later.
See Also
Declared In
NSPrintInfo.hisVerticallyCentered
Returns a Boolean value indicating whether the image is centered vertically.
Return Value
YES if the image is centered vertically; otherwise, NO.
Availability
- Available in OS X v10.0 and later.
Declared In
NSPrintInfo.hjobDisposition
Returns the action specified for the job.
Return Value
One of the following value:
NSPrintSpoolJobis a normal print job.NSPrintPreviewJobsends the print job to the Preview application.NSPrintSaveJobsaves the print job to a file.NSPrintCancelJobaborts the print job.NSPrintFaxJobis deprecated.
Availability
- Available in OS X v10.0 and later.
Declared In
NSPrintInfo.hleftMargin
Returns the width of the left margin.
Return Value
The left margin, measured in points in the user coordinate space.
Availability
- Available in OS X v10.0 and later.
See Also
Declared In
NSPrintInfo.hlocalizedPaperName
Returns the human-readable name of the currently selected paper size, suitable for presentation in user interfaces.
Return Value
The name of the paper size.
Discussion
This is typically different from the name returned by paperName, which is almost never suitable for presentation to the user.
Availability
- Available in OS X v10.3 and later.
Declared In
NSPrintInfo.horientation
Returns the orientation attribute.
Return Value
One of the following values: NSPortraitOrientation or NSLandscapeOrientation.
Availability
- Available in OS X v10.0 and later.
See Also
Declared In
NSPrintInfo.hpaperName
Returns the name of the currently selected paper size.
Return Value
The string contains a value such as Letter or Legal. Paper names are implementation specific.
Availability
- Available in OS X v10.0 and later.
See Also
Declared In
NSPrintInfo.hpaperSize
Returns the size of the paper.
Return Value
The size of the paper, measured in points in the user coordinate space.
Discussion
This method is key-value observing compliant.
Availability
- Available in OS X v10.0 and later.
See Also
Declared In
NSPrintInfo.hPMPageFormat
Returns a Core Printing object configured with the receiver’s page format information.
Return Value
A pointer to a PMPageFormat object, an opaque data type that stores information such as the paper size, orientation, and scale of pages in a printing session. You should not call PMRelease to release the returned object, except to balance calls to PMRetain that your code also issued.
Discussion
The information in the returned PMPageFormat object is consistent with the receiver’s page format information at the time this method is called. Subsequent changes to the receiving NSPrintInfo object do not result in changes to the information in the PMPageFormat object.
If you make changes to the data in the PMPageFormat object, you should invoke the updateFromPMPageFormat method to synchronize those changes with the NSPrintInfo object that created the object.
Availability
- Available in OS X v10.5 and later.
See Also
Declared In
NSPrintInfo.hPMPrintSession
Returns a Core Printing object configured with the receiver’s session information.
Return Value
A pointer to a PMPrintSession object, an opaque type that stores information about a print job. You should not call PMRelease to release the returned object, except to balance calls to PMRetain that your code also issued.
Discussion
The information in the returned PMPrintSession object is consistent with the receiver’s session information at the time this method is called. Subsequent changes to the receiving NSPrintInfo object do not result in changes to the information in the PMPrintSession object.
Availability
- Available in OS X v10.5 and later.
Declared In
NSPrintInfo.hPMPrintSettings
Returns a Core Printing object configured with the receiver’s print settings information
Return Value
A pointer to a PMPrintSettings object, an opaque data type used to store information such as the number of copies and the range of pages in a printing session. You should not call PMRelease to release the returned object, except to balance calls to PMRetain that your code also issued.
Discussion
The information in the returned PMPrintSettings object is consistent with the receiver’s print settings at the time this method is called. Subsequent changes to the receiving NSPrintInfo object do not result in changes to the information in the PMPrintSettings data type.
If you make changes to the data in the PMPrintSettings object, you should invoke the updateFromPMPrintSettings method to synchronize those changes with the NSPrintInfo object that created the object.
Availability
- Available in OS X v10.5 and later.
See Also
Declared In
NSPrintInfo.hprinter
Returns the NSPrinter object to be used for printing.
Return Value
The printer object.
Availability
- Available in OS X v10.0 and later.
See Also
Declared In
NSPrintInfo.hprintSettings
Returns a mutable dictionary containing the print settings from Core Printing.
Return Value
A mutable dictionary containing the printing system’s current settings.
Discussion
You can use this method to get and set values from the system print settings. The keys in the returned dictionary represent the values returned by the Core Printing function PMPrintSettingsGetValue. They correspond to the settings currently in the print panel and include everything from custom values set by your accessory panels to values provided by the printer driver’s print dialog extension.
Adding keys to the dictionary is equivalent to calling the Core Printing function PMPrintSettingsSetValue. Your new keys are added to the current print settings and are saved with any user preset files generated by the OS X printing system. Because the print settings are stored in a property list, any values you add to the dictionary must correspond to scalar types such as strings, numbers, dates, booleans, and data objects or collection types such as dictionaries and arrays.
Other parts of the printing system use key strings like com.apple.print.PrintSettings.PMColorSyncProfileID to identify print settings. Cocoa replaces the periods in such strings with underscores. Thus, the preceding key string would be com_apple_print_PrintSettings_PMColorSyncProfileID instead. If you use reverse-DNS style key strings for your custom attributes, you should follow the same convention of using underscore characters instead of periods.
Availability
- Available in OS X v10.5 and later.
Declared In
NSPrintInfo.hrightMargin
Returns the width of the right margin.
Return Value
The right margin, measured in points in the user coordinate space.
Availability
- Available in OS X v10.0 and later.
See Also
Declared In
NSPrintInfo.hscalingFactor
Returns the current scaling factor.
Return Value
The current scaling factor.
Discussion
This method is key-value observing compliant.
Availability
- Available in OS X v10.6 and later.
See Also
Declared In
NSPrintInfo.hsetBottomMargin:
Sets the bottom margin to the specified size.
Parameters
- margin
The new size for the bottom margin, measured in points in the user coordinate space.
Availability
- Available in OS X v10.0 and later.
See Also
Declared In
NSPrintInfo.hsetHorizontallyCentered:
Sets whether the image is centered horizontally.
Parameters
- flag
YESif you want the image to be centered horizontally; otherwise,NO.
Availability
- Available in OS X v10.0 and later.
Declared In
NSPrintInfo.hsetHorizontalPagination:
Sets the horizontal pagination to the specified mode.
Parameters
- mode
One of the pagination modes described in “NSPrintingPaginationMode.”
Availability
- Available in OS X v10.0 and later.
Declared In
NSPrintInfo.hsetJobDisposition:
Sets the action specified for the job
Parameters
- disposition
One of the following value:
NSPrintSpoolJobis a normal print job.NSPrintPreviewJobsends the print job to the Preview application.NSPrintSaveJobsaves the print job to a file.NSPrintCancelJobaborts the print job.NSPrintFaxJobis deprecated.
Availability
- Available in OS X v10.0 and later.
See Also
Declared In
NSPrintInfo.hsetLeftMargin:
Sets the left margin to the specified size.
Parameters
- margin
The new size for the left margin, measured in points in the user coordinate space.
Availability
- Available in OS X v10.0 and later.
See Also
Declared In
NSPrintInfo.hsetOrientation:
Sets the page orientation to the specified value.
Parameters
- orientation
This printing orientation. See “NSPrintingOrientation” for possible values..
Discussion
For consistency, this method may change either the paper name or the paper size.
Availability
- Available in OS X v10.0 and later.
Declared In
NSPrintInfo.hsetPaperName:
Sets the paper name to the specified value.
Parameters
- name
The name for the paper size. The string contains a value such as Letter or Legal. Paper names are implementation specific.
Discussion
For consistency, this method may change either the paper size or the page orientation.
Availability
- Available in OS X v10.0 and later.
See Also
Declared In
NSPrintInfo.hsetPaperSize:
Sets the width and height of the paper to the specified size.
Parameters
- aSize
The new size of the paper, measured in points in the user coordinate space.
Discussion
For consistency, this method may change either the paper name or the page orientation.
Availability
- Available in OS X v10.0 and later.
See Also
Declared In
NSPrintInfo.hsetPrinter:
Sets the printer object used for subsequent printing jobs.
Parameters
- printer
The printer object.
Discussion
This method iterates through the receiver's dictionary. If a feature in the dictionary is not supported by the new printer (as determined by a query to the PPD file), that feature is removed from the dictionary.
Availability
- Available in OS X v10.0 and later.
See Also
Declared In
NSPrintInfo.hsetRightMargin:
Sets the right margin to the specified size.
Parameters
- margin
The new size for the right margin, measured in points in the user coordinate space.
Availability
- Available in OS X v10.0 and later.
See Also
Declared In
NSPrintInfo.hsetScalingFactor:
Sets the print info’s scaling factor.
Parameters
- scalingFactor
The new scaling factor.
Availability
- Available in OS X v10.6 and later.
See Also
Declared In
NSPrintInfo.hsetSelectionOnly:
Sets whether only the current selection should be printed.
Parameters
- selectionOnly
YESif only the current selection should be printed, otherwiseNO.
Availability
- Available in OS X v10.6 and later.
See Also
Declared In
NSPrintInfo.hsetTopMargin:
Sets the top margin to the specified size.
Parameters
- margin
The new size for the top margin, measured in points in the user coordinate space.
Availability
- Available in OS X v10.0 and later.
See Also
Declared In
NSPrintInfo.hsetUpPrintOperationDefaultValues
Validates the attributes encapsulated by the receiver.
Discussion
Invoked when the print operation is about to start. Subclasses may override this method to set default values for any attributes that are not set.
Availability
- Available in OS X v10.0 and later.
Declared In
NSPrintInfo.hsetVerticallyCentered:
Sets whether the image is centered vertically.
Parameters
- flag
YESif you want the image to be centered vertically; otherwise,NO.
Availability
- Available in OS X v10.0 and later.
Declared In
NSPrintInfo.hsetVerticalPagination:
Sets the vertical pagination to the specified mode.
Parameters
- mode
One of the pagination modes described in “NSPrintingPaginationMode.”
Availability
- Available in OS X v10.0 and later.
Declared In
NSPrintInfo.htopMargin
Returns the top margin.
Return Value
The top margin, measured in points in the user coordinate space.
Availability
- Available in OS X v10.0 and later.
See Also
Declared In
NSPrintInfo.hupdateFromPMPageFormat
Synchronizes the receiver’s page format information with information from its associated PMPageFormat object.
Discussion
You should use this method after making changes to the PMPageFormat object obtained from the receiver. Each NSPrintInfo object keeps track of the object returned from its PMPageFormat method and obtains any updated information from the object directly. You only need to synchronize the objects once when you have made all of the desired changes.
Availability
- Available in OS X v10.5 and later.
See Also
Declared In
NSPrintInfo.hupdateFromPMPrintSettings
Synchronizes the receiver’s print settings information with information from its associated PMPrintSettings object.
Discussion
You should use this method after making changes to the PMPrintSettings object obtained from the receiver. Each NSPrintInfo object keeps track of the object returned from its PMPrintSettings method and obtains any updated information from the object directly. You only need to synchronize the objects once when you have made all of the desired changes.
Availability
- Available in OS X v10.5 and later.
See Also
Declared In
NSPrintInfo.hverticalPagination
Returns the vertical pagination mode.
Return Value
One of the pagination modes described in “Constants.”
Availability
- Available in OS X v10.0 and later.
Declared In
NSPrintInfo.hConstants
Print job attributes
These constants specify dictionary keys to access print job attributes.
NSString *const NSPrintPrinter; NSString *const NSPrintCopies; NSString *const NSPrintAllPages; NSString *const NSPrintFirstPage; NSString *const NSPrintLastPage; NSString *const NSPrintMustCollate; NSString *const NSPrintReversePageOrder; NSString *const NSPrintJobDisposition; NSString *const NSPrintSavePath; NSString *const NSPrintPagesAcross; NSString *const NSPrintPagesDown; NSString *const NSPrintTime; NSString *const NSPrintDetailedErrorReporting; NSString *const NSPrintFaxNumber; NSString *const NSPrintPrinterName; NSString *const NSPrintHeaderAndFooter; NSString *const NSPrintSelectionOnly; NSString *const NSPrintJobSavingURL; NSString *const NSPrintJobSavingFileNameExtensionHidden'
Constants
NSPrintPrinterAn
NSPrinterobject—the printer to use.Available in OS X v10.0 and later.
Declared in
NSPrintInfo.h.NSPrintCopiesAn
NSNumberobject containing an integer—the number of copies to spool.Available in OS X v10.0 and later.
Declared in
NSPrintInfo.h.NSPrintAllPagesAn
NSNumberobject containing a Boolean value—ifYES, includes all pages in output.Available in OS X v10.0 and later.
Declared in
NSPrintInfo.h.NSPrintFirstPageAn
NSNumberobject containing an integer value that specifies the first page in the print job.Available in OS X v10.0 and later.
Declared in
NSPrintInfo.h.NSPrintLastPageAn
NSNumberobject containing an integer value that specifies the last page in the print job.Available in OS X v10.0 and later.
Declared in
NSPrintInfo.h.NSPrintMustCollateAn
NSNumberobject containing a Boolean value—ifYES, collates output.Available in OS X v10.0 and later.
Declared in
NSPrintInfo.h.NSPrintReversePageOrderAn
NSNumberobject containing a Boolean value—ifYES, prints first page last.Available in OS X v10.0 and later.
Declared in
NSPrintInfo.h.NSPrintJobDispositionAn
NSStringobject that specifies the job disposition.NSPrintSpoolJob,NSPrintPreviewJob,NSPrintSaveJob, orNSPrintCancelJob. SeesetJobDisposition:for details.Available in OS X v10.0 and later.
Declared in
NSPrintInfo.h.NSPrintSavePathAn
NSStringobject that specifies the pathname to which the job file will be saved when thejobDispositionisNSPrintSaveJob..Use
NSPrintJobSavingURLinstead.Available in OS X v10.0 and later.
Declared in
NSPrintInfo.h.NSPrintPagesAcrossAn
NSNumberobject that specifies the number of logical pages to be tiled horizontally on a physical sheet of paper.Available in OS X v10.4 and later.
Declared in
NSPrintInfo.h.NSPrintPagesDownAn
NSNumberobject that specifies the number of logical pages to be tiled vertically on a physical sheet of paper.Available in OS X v10.4 and later.
Declared in
NSPrintInfo.h.NSPrintTimeAn
NSDateobject that specifies the time at which printing should begin.Available in OS X v10.4 and later.
Declared in
NSPrintInfo.h.NSPrintDetailedErrorReportingAn
NSNumberobject containing a Boolean value—ifYES, produce detailed reports when an error occurs.Available in OS X v10.4 and later.
Declared in
NSPrintInfo.h.NSPrintFaxNumberAn
NSStringobject that specifies a fax number.Available in OS X v10.4 and later.
Declared in
NSPrintInfo.h.NSPrintPrinterNameAn
NSStringobject that specifies the name of a printer.Available in OS X v10.4 and later.
Declared in
NSPrintInfo.h.NSPrintHeaderAndFooterAn
NSNumberobject containing a Boolean value—ifYES, a standard header and footer are added outside the margins of each page.Available in OS X v10.4 and later.
Declared in
NSPrintInfo.h.NSPrintSelectionOnlyAn
NSNumberobject containing a Boolean value—ifYESonly the current selection is printed.Available in OS X v10.6 and later.
Declared in
NSPrintInfo.h.NSPrintJobSavingURLAn
NSURLcontaining the location to which the job file will be saved when thejobDispositionisNSPrintSaveJob.Available in OS X v10.6 and later.
Declared in
NSPrintInfo.h.NSPrintJobSavingFileNameExtensionHiddenA boolean
NSNumberindicating whether the job’s file name extension should be hidden when thejobDispositionisNSPrintSaveJob. The default isNO.Available in OS X v10.6 and later.
Declared in
NSPrintInfo.h.
NSPrintingPaginationMode
These constants specify the different ways in which an image is divided into pages. They’re used by horizontalPagination, setHorizontalPagination:, verticalPagination, and setVerticalPagination:.
enum {
NSAutoPagination = 0,
NSFitPagination = 1,
NSClipPagination = 2
};
typedef NSUInteger NSPrintingPaginationMode;
Constants
NSAutoPaginationThe image is divided into equal-sized rectangles and placed in one column of pages.
Available in OS X v10.0 and later.
Declared in
NSPrintInfo.h.NSFitPaginationThe image is scaled to produce one column or one row of pages.
Available in OS X v10.0 and later.
Declared in
NSPrintInfo.h.NSClipPaginationThe image is clipped to produce one column or row of pages.
Available in OS X v10.0 and later.
Declared in
NSPrintInfo.h.
NSPrintingOrientation
These constants specify page orientations used by the methods orientation and setOrientation:.
enum {
NSPortraitOrientation = 0,
NSLandscapeOrientation = 1
};
typedef NSUInteger NSPrintingOrientation;
Constants
NSPortraitOrientationOrientation is portrait (page is taller than it is wide).
Available in OS X v10.0 and later.
Declared in
NSPrintInfo.h.NSLandscapeOrientationOrientation is landscape (page is wider than it is tall).
Available in OS X v10.0 and later.
Declared in
NSPrintInfo.h.
Print job dispositions
These constants specify valid values for the print job attribute NSPrintJobDisposition. These constants are used by the jobDisposition and setJobDisposition: methods.
NSString *const NSPrintSpoolJob; NSString *const NSPrintPreviewJob; NSString *const NSPrintSaveJob; NSString *const NSPrintCancelJob;
Constants
NSPrintSpoolJobNormal print job.
Available in OS X v10.0 and later.
Declared in
NSPrintInfo.h.NSPrintPreviewJobSend to Preview application.
Available in OS X v10.0 and later.
Declared in
NSPrintInfo.h.NSPrintSaveJobSave to a file.
Available in OS X v10.0 and later.
Declared in
NSPrintInfo.h.NSPrintCancelJobCancel print job.
Available in OS X v10.0 and later.
Declared in
NSPrintInfo.h.
Page setup attributes
These constants specify dictionary keys to access page format attributes.
NSString *NSPrintPaperName; NSString *NSPrintPaperSize; NSString *NSPrintOrientation; NSString *NSPrintScalingFactor;
Constants
NSPrintPaperNameAn
NSStringobject containing the paper name.Available in OS X v10.0 and later.
Declared in
NSPrintInfo.h.NSPrintPaperSizeAn
NSSizevalue specifying the height and width of paper in points.Available in OS X v10.0 and later.
Declared in
NSPrintInfo.h.NSPrintOrientationAn
NSNumberobject containing anNSPrintingOrientation.NSPortraitOrientationorNSLandscapeOrientationAvailable in OS X v10.0 and later.
Declared in
NSPrintInfo.h.NSPrintScalingFactorScale factor percentage before pagination.
Available in OS X v10.0 and later.
Declared in
NSPrintInfo.h.
Declared In
NSPrintInfo.hPagination attributes
These constants specify dictionary keys to access pagination attributes.
NSString *NSPrintBottomMargin; NSString *NSPrintHorizontalPagination; NSString *NSPrintHorizontallyCentered; NSString *NSPrintLeftMargin; NSString *NSPrintRightMargin; NSString *NSPrintTopMargin; NSString *NSPrintVerticalPagination; NSString *NSPrintVerticallyCentered;
Constants
NSPrintLeftMarginNSNumber, containing a floating-point value that specifies the left margin, in points.Available in OS X v10.0 and later.
Declared in
NSPrintInfo.h.NSPrintRightMarginNSNumber, containing a floating-point value that specifies the right margin, in points.Available in OS X v10.0 and later.
Declared in
NSPrintInfo.h.NSPrintTopMarginNSNumber, containing a floating-point value that specifies the top margin, in points.Available in OS X v10.0 and later.
Declared in
NSPrintInfo.h.NSPrintBottomMarginNSNumber, containing a floating-point value that specifies the bottom margin, in points.Available in OS X v10.0 and later.
Declared in
NSPrintInfo.h.NSPrintHorizontallyCenteredNSNumber, containing a Boolean value that isYESif pages are centered horizontally.Available in OS X v10.0 and later.
Declared in
NSPrintInfo.h.NSPrintVerticallyCenteredNSNumber, containing a Boolean value that isYESif pages are centered vertically.Available in OS X v10.0 and later.
Declared in
NSPrintInfo.h.NSPrintHorizontalPaginationNSNumber, containing aNSPrintingPaginationModevalue.NSAutoPagination,NSFitPagination, orNSClipPagination. SeesetHorizontalPagination:for details.Available in OS X v10.0 and later.
Declared in
NSPrintInfo.h.NSPrintVerticalPaginationNSNumber, containing aNSPrintingPaginationModevalue.NSAutoPagination,NSFitPagination, orNSClipPagination. SeesetVerticalPagination:for details.Available in OS X v10.0 and later.
Declared in
NSPrintInfo.h.
Declared In
NSPrintInfo.hDeprecated Printing Keys
These keys refer to older printing properties that are no longer used. (Deprecated. Use the keys described in “Print job attributes” instead.)
NSString *NSPrintFormName; NSString *NSPrintJobFeatures; NSString *NSPrintManualFeed; NSString *NSPrintPagesPerSheet; NSString *NSPrintPaperFeed; NSString *NSPrintFaxReceiverNames; NSString *NSPrintFaxReceiverNumbers; NSString *NSPrintFaxSendTime; NSString *NSPrintFaxUseCoverSheet; NSString *NSPrintFaxCoverSheetName; NSString *NSPrintFaxReturnReceipt; NSString *NSPrintFaxHighResolution; NSString *NSPrintFaxTrimPageEnds; NSString *NSPrintFaxModem; NSString *NSPrintFaxJob;
Constants
NSPrintFormNameDeprecated. Do not use.
Available in OS X v10.0 and later.
Deprecated in OS X v10.2.
Declared in
NSPrintInfo.h.NSPrintJobFeaturesDeprecated. Do not use.
Available in OS X v10.0 and later.
Deprecated in OS X v10.2.
Declared in
NSPrintInfo.h.NSPrintManualFeedDeprecated. Do not use.
Available in OS X v10.0 and later.
Deprecated in OS X v10.2.
Declared in
NSPrintInfo.h.NSPrintPagesPerSheetDeprecated. Do not use.
Available in OS X v10.0 and later.
Deprecated in OS X v10.2.
Declared in
NSPrintInfo.h.NSPrintPaperFeedDeprecated. Do not use.
Available in OS X v10.0 and later.
Deprecated in OS X v10.2.
Declared in
NSPrintInfo.h.NSPrintFaxReceiverNamesDeprecated. Do not use.
Available in OS X v10.0 through OS X v10.5.
Declared in
NSPrintInfo.h.NSPrintFaxReceiverNumbersDeprecated. Do not use.
Available in OS X v10.0 through OS X v10.5.
Declared in
NSPrintInfo.h.NSPrintFaxSendTimeDeprecated. Do not use.
Available in OS X v10.0 through OS X v10.5.
Declared in
NSPrintInfo.h.NSPrintFaxUseCoverSheetDeprecated. Do not use.
Available in OS X v10.0 through OS X v10.5.
Declared in
NSPrintInfo.h.NSPrintFaxCoverSheetNameDeprecated. Do not use.
Available in OS X v10.0 through OS X v10.5.
Declared in
NSPrintInfo.h.NSPrintFaxReturnReceiptDeprecated. Do not use.
Available in OS X v10.0 through OS X v10.5.
Declared in
NSPrintInfo.h.NSPrintFaxHighResolutionDeprecated. Do not use.
Available in OS X v10.0 through OS X v10.5.
Declared in
NSPrintInfo.h.NSPrintFaxTrimPageEndsDeprecated. Do not use.
Available in OS X v10.0 through OS X v10.5.
Declared in
NSPrintInfo.h.NSPrintFaxModemDeprecated. Do not use.
Available in OS X v10.0 through OS X v10.5.
Declared in
NSPrintInfo.h.NSPrintFaxJobDeprecated. Do not use.
Available in OS X v10.0 through OS X v10.5.
Declared in
NSPrintInfo.h.
© 2009 Apple Inc. All Rights Reserved. (Last updated: 2009-07-09)