Carbon


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
);
Parameter descriptions
printSettings

A PMPrintSettings object.

minPage

On return, the minimum allowable page number.

maxPage

On return, the maximum allowable page number.

function result

A result code. A result code. See “Result Codes”.

DISCUSSION

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.

SPECIAL CONSIDERATIONS

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.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later.

CARBON NOTES

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)