Need to spool printer output and have it redirected to another program's stdin for manipulation
Posted on 2003-12-01
We have a Unix-based accounting system that we use, and part of our ability is to spool the output of a printer operation and have it piped to another program. We have scripts that take this output from stdin, manipulate it, and then print it to a printer of our choice. We essentially have full control of our printing operations.
I need to create the analog for Windows (NT 4.0, 2K, ...). I have made use of RedMon, and although it's proven useful in spooling the printer output and piping it to my program, it still makes use of a printer driver. The problem with this is that I can't find a printer driver that does NOT adulterate the output; indeed, even the Generic Text driver likes to add the filename of that which was printed on the header, and the page numbers on the footer.
So, to recap: I need to have a printer operation's stdout pipe to the stdin of my program. My program will then print to the necessary printer. Is anyone aware of any truly Generic Text driver that doesn't modify the data sent to the printer in any way? Any other suggestions are GREATLY appreciated!