PMCreatePageFormatWithPMPaper(_:_:)
Creates a page format object with a specified paper.
Declaration
func PMCreatePageFormatWithPMPaper(_ pageFormat: UnsafeMutablePointer<PMPageFormat?>, _ paper: PMPaper) -> OSStatusParameters
- pageFormat:
A pointer to your Pmpageformat variable. On return, the variable refers to a new page format object that represents the specified paper. You are responsible for releasing the page format object with the function 1461402 Pmrelease.
- paper:
The type of paper for the new page format object.
Return Value
A result code. See Result Codes.