Initialize a print context with information for a given printer
int PpLoadPrinter( PpPrintContext_t *pc, char const *name );
This function initializes the provided print context with the printer file information for the printer section named name. If name isn't provided, this function loads the attributes of the default printer as specified in the printer files. The files used by this function are:
The value of PHOTON_PATH depends on your installation:
PpPrintContext_t *pc = PpPrintCreatePC(); PpLoadPrinter( pc, "PostScript Printer"); PpPrintOpen( pc ); PpPrintStart( pc ); // Draw stuff PpPrintStop( pc ); PpPrintClose( pc );
Photon
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | No |