Platforms to show: All Mac Windows Linux Cross-Platform
Back to NSPrintInfoMBS class.
NSPrintInfoMBS.bottomMargin as Double
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Printing | MBS MacCocoa Plugin | 12.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
(Read and Write property)
NSPrintInfoMBS.data as Memoryblock
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Printing | MBS MacCocoa Plugin | 14.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
The plugin archives the current settings and you can later assign them back.
(Read and Write property)
NSPrintInfoMBS.dictionary as dictionary
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Printing | MBS MacCocoa Plugin | 12.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
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.
(Read and Write property)
NSPrintInfoMBS.Handle as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Printing | MBS MacCocoa Plugin | 12.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
(Read and Write property)
NSPrintInfoMBS.HorizontallyCentered as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Printing | MBS MacCocoa Plugin | 12.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
True if you want the image to be centered horizontally; otherwise, false.
(Read and Write property)
Some examples using this property:
NSPrintInfoMBS.horizontalPagination as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Printing | MBS MacCocoa Plugin | 12.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
One of the pagination modes described in constants.
(Read and Write property)
Some examples using this property:
NSPrintInfoMBS.imageablePageBounds as NSRectMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Printing | MBS MacCocoa Plugin | 12.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Return the imageable area, measured in points in the user coordinate space.
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.
(Read only property)
NSPrintInfoMBS.jobDisposition as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Printing | MBS MacCocoa Plugin | 12.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
One of the following value:
- NSPrintSpoolJob is a normal print job.
- NSPrintPreviewJob sends the print job to the Preview application.
- NSPrintSaveJob saves the print job to a file.
- NSPrintCancelJob aborts the print job.
NSPrintInfoMBS.leftMargin as Double
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Printing | MBS MacCocoa Plugin | 12.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
The size for the left margin, measured in points in the user coordinate space.
(Read and Write property)
NSPrintInfoMBS.localizedPaperName as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Printing | MBS MacCocoa Plugin | 12.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
This is typically different from the name returned by paperName, which is almost never suitable for presentation to the user.
(Read only property)
NSPrintInfoMBS.orientation as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Printing | MBS MacCocoa Plugin | 12.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
This printing orientation. See constants for possible values.
For consistency, this method may change either the paper name or the paper size.
(Read and Write property)
NSPrintInfoMBS.paperName as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Printing | MBS MacCocoa Plugin | 12.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
The name for the paper size. The string contains a value such as Letter or Legal. Paper names are implementation specific.
For consistency, this method may change either the paper size or the page orientation.
(Read and Write property)
NSPrintInfoMBS.paperSize as NSSizeMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Printing | MBS MacCocoa Plugin | 12.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
The new size of the paper, measured in points in the user coordinate space.
For consistency, this method may change either the paper name or the page orientation.
(Read and Write property)
NSPrintInfoMBS.printer as NSPrinterMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Printing | MBS MacCocoa Plugin | 12.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
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.
(Read and Write property)
Some examples using this property:
NSPrintInfoMBS.printerName as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Printing | MBS MacCocoa Plugin | 14.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
(Read only property)
NSPrintInfoMBS.printSettings as dictionary
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Printing | MBS MacCocoa Plugin | 12.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
A mutable dictionary containing the printing system's current settings.
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.
(Read only property)
NSPrintInfoMBS.rightMargin as Double
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Printing | MBS MacCocoa Plugin | 12.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
The size for the right margin, measured in points in the user coordinate space.
(Read and Write property)
NSPrintInfoMBS.scalingFactor as Double
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Printing | MBS MacCocoa Plugin | 12.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Default is 1.0.
Using smaller value increases paper size.
(Read and Write property)
NSPrintInfoMBS.SelectionOnly as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Printing | MBS MacCocoa Plugin | 12.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
True if only the current selection should be printed, otherwise false.
(Read and Write property)
NSPrintInfoMBS.SetupString as Memoryblock
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Printing | MBS MacCocoa Plugin | 14.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
While data property encodes the dictionary, this property encodes the NSPrintInfo which is same format as PrinterSetup.SetupString in Xojo.
(Read and Write property)
NSPrintInfoMBS.topMargin as Double
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Printing | MBS MacCocoa Plugin | 12.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
The size for the top margin, measured in points in the user coordinate space.
(Read and Write property)
NSPrintInfoMBS.VerticallyCentered as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Printing | MBS MacCocoa Plugin | 12.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
True if you want the image to be centered vertically; otherwise, false.
(Read and Write property)
Some examples using this property:
NSPrintInfoMBS.verticalPagination as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Printing | MBS MacCocoa Plugin | 12.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
One of the pagination modes described in constants.
(Read and Write property)
Some examples using this property:
The items on this page are in the following plugins: MBS MacCocoa Plugin.