![]() |
PMGetPageRange |
||||
Header: | PMCore.h | Carbon status: | Supported | |
Obtains the valid range of pages that can be printed.
OSStatus PMGetPageRange ( PMPrintSettings printSettings, UInt32 *minPage, UInt32 *maxPage );
A PMPrintSettings object.
On return, the minimum allowable page number.
On return, the maximum allowable page number.
A result code. A result code. See
The default page range is 1-32000. This range is independent of the first and last page values reported by PMGetFirstPage and PMGetLastPage. See PMSetPageRange for more information.
Before using this function you must call PMSessionValidatePrintSettings or PMValidatePrintSettings to ensure that the print settings object is valid.
Valid within a printing session after creating a print settings object.
Supported in Carbon. Available in Carbon 1.0.2 and later.
The PMGetPageRange function replaces the Printing Manager opcode kPrinterDirectOpCode in kPDVerifySelect mode, and obtains information previously stored in the iFstPage and iLstPage fields of the Printing Manager structure TPrJob.
© 2000 Apple Computer, Inc. (Last Updated 7/17/2000)