PMSessionCopyDestinationFormat(_:_:_:)
Obtains the destination format for a print job.
Declaration
func PMSessionCopyDestinationFormat(_ printSession: PMPrintSession, _ printSettings: PMPrintSettings, _ destFormatP: UnsafeMutablePointer<Unmanaged<CFString>?>) -> OSStatusParameters
- printSession:
The printing session that provides a context for the print job.
- printSettings:
The print settings object for the print job whose destination format you want to obtain.
- destFormatP:
A pointer to your Cfstring variable. On return, the variable refers to a Core Foundation string that contains the destination format for the print job. You are responsible for releasing the string. Currently, there are two possible values:
kPMDocumentFormatPDForkPMDocumentFormatPostScript.If an error occurs, the variable is set to
NULL. If the function executes without error and the variable is set toNULL, the print job is set to use the default destination format.
Return Value
A result code. See Result Codes.
Discussion
You must call this function between the creation and release of a printing session. See the function PMCreateSession(_:).