PMPageFormatCreateWithDataRepresentation(_:_:)
Creates a page format object from a data representation.
Declaration
func PMPageFormatCreateWithDataRepresentation(_ data: CFData, _ pageFormat: UnsafeMutablePointer<PMPageFormat?>) -> OSStatusParameters
- data:
The data representation of a page format object. The data representation must have been previously created with the function 1464227 Pmpageformatcreatedatarepresenta.
- pageFormat:
A pointer to your Pmpageformat variable. On return, the variable refers to a new page format object that contains the information stored in the specified data 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 is typically used to convert a data representation stored in a user document back into a page format object. For information about creating a Core Foundation data object from raw data, see CFData.
After calling this function, you should call the function PMSessionValidatePageFormat(_:_:_:) to make sure the page format object contains valid values.