![]() |
![]() |
![]() |
![]() |
Initialize a print context with information for a given printer
int PpLoadPrinter( PpPrintContext_t *pc, char const *name );
ph
This function initializes the provided print context with information for the printer section named name. If name isn't provided, this function loads the attributes of the default printer as specified in $HOME/.ph/print/config.
PpPrintContext_t *pc = PpCreatePC(); PpLoadPrinter( pc, "GenericPostScriptPrinter@localhost"); PpStartJob( pc ); PpContinueJob( pc ); // Draw stuff PpSuspendJob( pc ); PpEndJob( pc ); PpReleasePC( pc );
Photon
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | No |
PpContinueJob(), PpCreatePC(), PpEndJob(), PpGetPC(), PpLoadDefaultPrinter(), PpPrintNewPage(), PpPrintWidget(), PpReleasePC(), PpSetPC(), PpStartJob(), PpSuspendJob(), PtPrintSelection()
Printing chapter of the Programmer's Guide
![]() |
![]() |
![]() |
![]() |