Carbon


PMGetAdjustedPageRect

Header: PMCore.h Carbon status: Supported

Obtains the page size, taking into account orientation, application drawing resolution, and scaling settings.

OSStatus PMGetAdjustedPageRect (
    PMPageFormat pageFormat, 
    PMRect *pageRect
);
Parameter descriptions
pageFormat

A PMPageFormat object.

pageRect

On return, a rectangle describing the current page size, in points, taking into account scaling, rotation, and resolution settings.

function result

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

SPECIAL CONSIDERATIONS

Before using this function you must call PMSessionValidatePageFormat or PMValidatePageFormat to ensure that the page format object is valid.

Valid within a printing session after creating a page format object.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later.


© 2000 Apple Computer, Inc. (Last Updated 7/17/2000)