int = WritePrinter(hprinter, buf
)
Copies the specified bytes to the specified printer.
Suitable for copying raw Postscript or HPGL files to a printer.
StartDocPrinter and EndDocPrinter should be called before and after.
Parameters
hprinter : PyPrinterHANDLE
Handle to printer as returned by win32print::OpenPrinter.buf : string
String or buffer containing data to send to printer. Embedded
NULL bytes are allowed.Return Value
Returns number of bytes written to printer.