[Previous] [Contents] [Index] [Next]

PpPrintClose()

Close a print context

Synopsis:

int PpPrintClose( PpPrintContext_t *pc );

Description:

This function completes the current print job for the provided print context, pc. If the print context is active, it's deactivated as if PpPrintStop() had been called.


Note: The print context is deactivated, but isn't destroyed, so it can be used for future print jobs with little or no reconfiguration.

When this function returns, the printed output has been generated and sent to the destination specified in the print context.

Returns:

0
Success.
-1
The print context couldn't be made active, probably because the required print driver couldn't be launched. See errno for the specific error.

Examples:

See PpPrintStart().

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PpPrintCreatePC(), PpPrintGetPC(), PpPrintNewPage(), PpPrintOpen(), PpPrintReleasePC(), PpPrintSetPC(), PpPrintStart(), PpPrintStop(), PpPrintWidget()


[Previous] [Contents] [Index] [Next]