---
title: "PMSessionDefaultPageFormat(_:_:)"
framework: applicationservices
role: symbol
role_heading: Function
path: applicationservices/1462217-pmsessiondefaultpageformat
---

# PMSessionDefaultPageFormat(_:_:)

Assigns default parameter values to a page format object used in the specified printing session.

## Declaration

```swift
func PMSessionDefaultPageFormat(_ printSession: PMPrintSession, _ pageFormat: PMPageFormat) -> OSStatus
```

## Parameters

- `printSession`: The printing session for the specified page format object.
- `pageFormat`: The page format object to which you want to assign default values.

## Return Value

Return Value A result code. See Result Codes.

## Discussion

Discussion You must call the function PMSessionDefaultPageFormat between the creation and release of the printing session. See the function PMCreateSession(_:).

## See Also

### Creating and Using Page Format Objects

- [PMCreatePageFormat(_:)](applicationservices/1459485-pmcreatepageformat.md)
- [PMCreatePageFormatWithPMPaper(_:_:)](applicationservices/1459274-pmcreatepageformatwithpmpaper.md)
- [PMCopyPageFormat(_:_:)](applicationservices/1464669-pmcopypageformat.md)
- [PMSessionValidatePageFormat(_:_:_:)](applicationservices/1459090-pmsessionvalidatepageformat.md)
- [PMSessionCreatePageFormatList(_:_:_:)](applicationservices/1463985-pmsessioncreatepageformatlist.md)
- [PMPageFormatCreateDataRepresentation(_:_:_:)](applicationservices/1464227-pmpageformatcreatedatarepresenta.md)
- [PMPageFormatCreateWithDataRepresentation(_:_:)](applicationservices/1462876-pmpageformatcreatewithdatarepres.md)
