Carbon


PMSessionEndDocument

Header: PMApplication.h Carbon status: Supported

Closes the context created for imaging a document in the specified printing session.

OSStatus PMSessionEndDocument (
    PMPrintSession printSession
);
Parameter descriptions
printSession

A PMPrintSession object. On return, the object is no longer valid; however, you must still call PMRelease to release the object.

function result

A result code. A result code. See “Result Codes”.

DISCUSSION

You should call PMSessionEndDocument after the last PMSessionEndPage in your print loop and before releasing the session.

SPECIAL CONSIDERATIONS

Valid within the context of a printing session, after calling PMSessionBeginDocument.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.1 and later when CarbonLib 1.1 or later is present.

CARBON NOTES

PMSessionEndDocument is equivalent to the Classic Printing Manager function PrCloseDoc.


© 2000 Apple Computer, Inc. (Last Updated 7/17/2000)