PMCreatePageFormat(_:)
Creates a new page format object.
Declaration
func PMCreatePageFormat(_ pageFormat: UnsafeMutablePointer<PMPageFormat?>) -> OSStatusParameters
- pageFormat:
A pointer to your Pmpageformat variable. On return, the variable refers to a new page format object. You are responsible for releasing the page format object with the function 1461402 Pmrelease.
Return Value
A result code. See Result Codes.
Discussion
This function allocates memory for a new page format object in your application’s memory space and sets its reference count to 1. The new page format object is empty and unusable until you call PMSessionDefaultPageFormat(_:_:) or PMCopyPageFormat(_:_:).