In article <[EMAIL PROTECTED]>,
 Uwe Schmitt <[EMAIL PROTECTED]> wrote:

>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.

One possibility is that the printer itself is doing some kind of 
auto-emulation-sensing. My experience is that this kind of thing never 
works reliably when PostScript is involved.

1) Can you check the printer settings, to ensure its "personality" (or 
whatever it's called) is set to "PostScript" and not "auto"?
2) Failing that, what if you make sure the first line of your PostScript 
is always a comment beginning with "%!" or "%!PS-"?
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to