printing raw postscript data on windows

Uwe Schmitt schmitt at num.uni-sb.de
Fri Jul 14 13:08:02 EDT 2006


Hi,

I am trying to print raw postscript data on windows.
win32print should do the work like this:

   h=win32print.OpenPrinter(name)
   win32print.StartDocPrinter(h, 1, ("", "", "RAW"))
   win32print.WritePrinter(h, file("p.ps").read())
   win32print.EndDocPrinter(h)
   win32print.ClosePrinter(h)

This works for some printers, but not for all. The
problem is, that no error messages or exceptions
occur. 

Is there any other way to print raw data ? I am using
wx, but wx does not seem to provide this functionality.

Greetings, Uwe





More information about the Python-list mailing list