Patent ID: 6995853

Claim:
A method of modifying print stream data in a printing system, said method comprising the steps of: (a) sending a print stream from a data processing application to a print spooler; (b) determining, in a document driver, whether or not said print stream comprises text data, and: (i) if said print stream comprises text data then tagging said text data and sending said tagged text data to a user mode module for further parsing; or (ii) if said print stream does not comprise text data then sending said print stream to a direct data injection step for a document printer; (c) storing said tagged text in a local buffer; (d) retrieving said tagged text from said local buffer and determining whether or not an address is contained within said tagged text, and: (i) if an address is found in said tagged text, then placing said address in an envelope print format to create an envelope data set; and (ii) if an address is not found then sending said tagged text directly to said data injection step; (e) creating an envelope printer device context from the document driver and transmitting said envelope data set to an envelope printer driver for creating an envelope printer device language file; (f) reading said printer device language and then injecting said envelope data set into said print stream so that the envelope data may be transmitted to the envelope printer and the document data to the document printer; and (g) transmitting said print stream to a next destination.