printing raw postscript data on windows

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Uwe Schmitt

    #1

    printing raw postscript data on windows


    Hi,

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

    h=win32print.Op enPrinter(name)
    win32print.Star tDocPrinter(h, 1, ("", "", "RAW"))
    win32print.Writ ePrinter(h, file("p.ps").re ad())
    win32print.EndD ocPrinter(h)
    win32print.Clos ePrinter(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


  • Lawrence D'Oliveiro

    #2
    Re: printing raw postscript data on windows

    In article <1152896884$mai l2nntp@hades.rz .uni-saarland.de>,
    Uwe Schmitt <schmitt@num.un i-sb.dewrote:
    >I am trying to print raw postscript data on windows.
    >win32print should do the work like this:
    >
    h=win32print.Op enPrinter(name)
    win32print.Star tDocPrinter(h, 1, ("", "", "RAW"))
    win32print.Writ ePrinter(h, file("p.ps").re ad())
    win32print.EndD ocPrinter(h)
    win32print.Clos ePrinter(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 "personalit y" (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-"?

    Comment

    Working...