PMSessionEndPageNoDialog(_:)
Indicates the end of drawing the current page for the specified printing session.
Declaration
func PMSessionEndPageNoDialog(_ printSession: PMPrintSession) -> OSStatusParameters
- printSession:
The printing session that provides a context for the print job.
Return Value
A result code. See Result Codes.
Discussion
This function is similar to the function PMSessionEndPage except that the printing status dialog is suppressed.
You must call this function between the creation and release of a printing session. See the function PMCreateSession(_:). You must call the functions PMSessionBeginPageNoDialog and PMSessionEndPageNoDialog within the scope of calls to the Begin print job function (PMSessionBeginCGDocumentNoDialog(_:_:_:)) and the End print job function (PMSessionEndDocumentNoDialog(_:)).
If the function PMSessionBeginPageNoDialog returns noErr, you must later call the function PMSessionEndPageNoDialog, even if errors occur within the scope of PMSessionBeginPageNoDialog and PMSessionEndPageNoDialog. You should not call PMSessionEndPageNoDialog if PMSessionBeginPageNoDialog returns an error.