---
title: "PMCopyPageFormat(_:_:)"
framework: applicationservices
role: symbol
role_heading: Function
path: applicationservices/1464669-pmcopypageformat
---

# PMCopyPageFormat(_:_:)

Copies the settings from one page format object into another.

## Declaration

```swift
func PMCopyPageFormat(_ formatSrc: PMPageFormat, _ formatDest: PMPageFormat) -> OSStatus
```

## Parameters

- `formatSrc`: The page format object to duplicate.
- `formatDest`: The page format object to receive the copied settings. On return, this object contains the same settings as the formatSrc object.

## Return Value

Return Value A result code. See Result Codes.

## See Also

### Creating and Using Page Format Objects

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