Hi All,
Yet another teaser that's been bugging me lately.
We have several documents that we print in postscript directly to a cups printer using
and then
Those "put streams" are littered throughout the code, merrily dumping postscript out to the printer. What I now want to do is to record what goes out through those streams (so that I can re-create the print jobs), but only for a particular document.
I've trawled the OE language reference, and done some searches here, but either no one else is interested in redirecting or cloning stream data, or I'm not searching for the right thing!
I could change the stream location to a file and do with it what I will - this has it's own complexities I wont get into, but needless to say this will be my approach if nothing comes of this post.
So, my question is, how to I capture stream data to, say another stream or a variable? Is the stream in memory somewhere until it is closed?
Thanks in advance!
Yet another teaser that's been bugging me lately.
We have several documents that we print in postscript directly to a cups printer using
Code:
OUTPUT STREAM prnt THRU VALUE("lp -d" + v_printer)
Code:
PUT STREAM prnt UNFORMATTED v_Postscript SKIP.
I've trawled the OE language reference, and done some searches here, but either no one else is interested in redirecting or cloning stream data, or I'm not searching for the right thing!
I could change the stream location to a file and do with it what I will - this has it's own complexities I wont get into, but needless to say this will be my approach if nothing comes of this post.
So, my question is, how to I capture stream data to, say another stream or a variable? Is the stream in memory somewhere until it is closed?
Thanks in advance!
Last edited: