Contents

PMGetPageRange(_:_:_:)

Obtains the valid range of pages that can be printed.

Declaration

func PMGetPageRange(_ printSettings: PMPrintSettings, _ minPage: UnsafeMutablePointer<UInt32>, _ maxPage: UnsafeMutablePointer<UInt32>) -> OSStatus

Parameters

  • printSettings:

    The print settings object whose page range you want to obtain.

  • minPage:

    A pointer to your UInt32 variable. On return, the variable contains the minimum page number allowed.

  • maxPage:

    A pointer to your UInt32 variable. 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