---
title: PMSetAdjustedPageRect
framework: Application Services
role: pseudoSymbol
platforms: []
path: applicationservices/core_printing/1805455-pmsetadjustedpagerect
---

# PMSetAdjustedPageRect

Requests a particular page size, adjusted for the current rotation, resolution, or scaling settings.

## Declaration

```occ
OSStatus PMSetAdjustedPageRect (
   PMPageFormat pageFormat,
   const PMRect *pageRect
);
```

## Parameters

- `pageFormat`: The page format object whose page rectangle you want to set.
- `pageRect`: A pointer to your [doc://com.apple.documentation/documentation/applicationservices/core_printing/pmrect](applicationservices/core_printing/pmrect.md) data structure that specifies the desired size of the page rectangle, in points. The top-left coordinates should be (0,0). See Supporting Printing in Your Carbon Application for more information on page and paper rectangles.

## Return Value

A result code. See [Result Codes](../core_printing.md).

## Overview

This function is not recommended. You should call this function only if your application provides desktop publishing and the Page Setup dialog does not provide sufficient control. Typically, such applications display their own specialized document format dialog.

If you decide to use this function, you must call the function between the creation and release of a printing session. See the function [PMCreateSession](../1463247-pmcreatesession.md). You can use `PMSetAdjustedPageRect` to set a drawing rectangle without going through the Page Setup dialog or calling other page format accessor functions. This function allows an application to specify the dimensions of the imageable area into which it draws. 

If you call this function after initiating a print job, the change is ignored for the current job.

## See Also

### Accessing Data in Page Format Objects

- [PMGetPageFormatExtendedData](../1464455-pmgetpageformatextendeddata.md)
- [PMSetPageFormatExtendedData](../1463464-pmsetpageformatextendeddata.md)
- [PMGetPageFormatPaper](../1461319-pmgetpageformatpaper.md)
- [PMPageFormatGetPrinterID](../1462961-pmpageformatgetprinterid.md)
- [PMGetOrientation](../1459144-pmgetorientation.md)
- [PMSetOrientation](../1459016-pmsetorientation.md)
- [PMGetResolution](1805451-pmgetresolution.md)
- [PMSetResolution](1805452-pmsetresolution.md)
- [PMGetScale](../1458796-pmgetscale.md)
- [PMSetScale](../1463343-pmsetscale.md)
- [PMGetAdjustedPageRect](../1461543-pmgetadjustedpagerect.md)
- [PMGetAdjustedPaperRect](../1459167-pmgetadjustedpaperrect.md)
- [PMGetUnadjustedPageRect](../1462944-pmgetunadjustedpagerect.md)
- [PMGetUnadjustedPaperRect](../1462939-pmgetunadjustedpaperrect.md)
- [PMSetUnadjustedPaperRect](1805459-pmsetunadjustedpaperrect.md)
