Carbon


PMGetAdjustedPaperRect

Header: PMCore.h Carbon status: Supported

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

OSStatus PMGetAdjustedPaperRect (
    PMPageFormat pageFormat, 
    PMRect *paperRect
);
Parameter descriptions
pageFormat

A PMPageFormat object.

paperRect

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

function result

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

DISCUSSION

PMRect is a rectangle whose components are doubles. Units are in the application’s drawing resolution.

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)