---
title: PMSetUnadjustedPaperRect
framework: Application Services
role: pseudoSymbol
platforms: []
path: applicationservices/core_printing/1805459-pmsetunadjustedpaperrect
---

# PMSetUnadjustedPaperRect

Requests a particular paper size, unaffected by rotation, resolution, or scaling.

## Declaration

```occ
OSStatus PMSetUnadjustedPaperRect (
   PMPageFormat pageFormat,
   const PMRect *paperRect
);
```

## Parameters

- `pageFormat`: The page format object whose unadjusted paper rectangle you want to set.
- `paperRect`: A pointer to a structure of type `PMRect` that specifies the desired paper size, in points. The coordinates of the upper-left corner of the paper rectangle are specified relative to the page rectangle. 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). The result code `kPMValueOutOfRange` indicates that the printer driver does not support the requested page size.

## 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 it between the creation and release of a printing session. After using the function `PMSetUnadjustedPaperRect` you should always call [PMSessionValidatePageFormat](../1459090-pmsessionvalidatepageformat.md) then call [PMGetUnadjustedPaperRect](../1462939-pmgetunadjustedpaperrect.md) to verify that the paper size you set is recorded by the printer driver.

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)
- [PMSetAdjustedPageRect](1805455-pmsetadjustedpagerect.md)
- [PMGetAdjustedPaperRect](../1459167-pmgetadjustedpaperrect.md)
- [PMGetUnadjustedPageRect](../1462944-pmgetunadjustedpagerect.md)
- [PMGetUnadjustedPaperRect](../1462939-pmgetunadjustedpaperrect.md)
