PrCloseDoc
PrCloseDoc Close a printing grafPort and end a print job
#include <PrintTraps.h> Printing Manager
void PrCloseDoc(pPrPort );
TPPrPort pPrPort ; address of a TPrPort structure
Use PrCloseDoc after you finish printing the final page of a document. It
releases the printing grafPort if you created one in a previous call to
PrOpenDoc. If print spooling was taking place, the spooling process is
terminated.
pPrPort is the address of a 178-byte TPrPort record. This must be a value
previously obtained via PrOpenDoc.
Returns: none; call PrError for result code.

Notes: If, in the previous call to PrOpenDoc, you specified pPrPort = 0, then
this call disposes of the memory allocated for that TPrPort. In that case,
pPrPort will point to someplace meaningless after you call PrCloseDoc.
After calling PrCloseDoc, you must check to see if the printing was
spooled, and if so, you must call PrPicFile to actually print the spooled
data. See PrOpenDoc for an example sequence.