PMGetPageRange(_:_:_:)
Obtains the valid range of pages that can be printed.
Declaration
func PMGetPageRange(_ printSettings: PMPrintSettings, _ minPage: UnsafeMutablePointer<UInt32>, _ maxPage: UnsafeMutablePointer<UInt32>) -> OSStatusParameters
- printSettings:
The print settings object whose page range you want to obtain.
- minPage:
A pointer to your
UInt32variable. On return, the variable contains the minimum page number allowed. - maxPage:
A pointer to your
UInt32variable. On return, the variable contains the maximum page number allowed.
Return Value
A result code. See Result Codes.
Discussion
The page range returned by the function PMGetPageRange is independent of the first and last page values returned by PMGetFirstPage(_:_:) and PMGetLastPage(_:_:). See PMSetPageRange for more information.
See Also
Accessing Data in Print Settings Objects
PMGetFirstPage(_:_:)PMSetFirstPage(_:_:_:)PMGetLastPage(_:_:)PMSetLastPage(_:_:_:)PMSetPageRange(_:_:_:)PMPrintSettingsGetJobName(_:_:)PMPrintSettingsSetJobName(_:_:)PMGetCopies(_:_:)PMSetCopies(_:_:_:)PMGetCollate(_:_:)PMSetCollate(_:_:)PMGetDuplex(_:_:)PMSetDuplex(_:_:)PMPrintSettingsGetValue(_:_:_:)PMPrintSettingsSetValue(_:_:_:_:)PMPrintSettingsCopyAsDictionary(_:_:)PMPrintSettingsCopyKeys(_:_:)