Starting to see good results from converting an app from driving a specific breed of dot-matrix impact printer via a specific SCO Unix device node to a more generalised system which will print A4 pages on almost any printer.
How?
How?
- Feed the "printer" output into a (text) file;
- Set the init sequence to be <HTML><BODY><PRE> & the flush sequence to be </PRE></BODY></HTML>
- Redefine the escape sequences for bold/unbold into "<B>" & "</B>" likewise for italics into "<I>" & "</I>" etc, notably page break (^L/\f) into <!-- PAGE BREAK -->;
- Cram the text file into htlmdoc & order it to produce PDFs;
- lpr nameofPDFfile (or write it where it can be viewed in a file share for emailng purposes)
Comments