Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing/Faxing from legacy application

Status
Not open for further replies.

nolacoaches

IS-IT--Management
May 1, 2003
62
US
I have a legacy database application running on RedHat linux. THis may be a programmer forum question, but where?
The legacy app sends an order confirmation page to a samba printer OK, using either text only or laserjet drivers. However; if I write it to a file (.txt or .ps (using virtual postscript printer) the hard coded print control characters get imbedded in the output file and jumble up the formatting. Here is the code from the print routine:
Append Courier_bold_10 "(s0p10h0s3b4099T" // courier bold 10
Append Courier_bold_6 "(s0p6h0s3b4099T" // courier bold 6
Append Courier_bold_8 "(s0p12h0s3b4099T" // courier bold 8
Append Courier_bold_12 "(s0p14h0s5b4099T" // courier bold
When sending to a postscript file, the s0p6h0s...... appears as text and throws everything off.
Anybody think of a creative way to get this beast to fax (in a client server environment)

Never stay up on the barren heights of cleverness, but come down into the green valleys of silliness.
Ludwig Wittgenstein
 
perhaps you may convert your ps-file to g3 - which is afaik the standard-fax-format if you want to send it by modem.
Code:
convert -monochrome document.ps fax:page
You need the wonderful image-magick package.
Or you find a ps2fax ps2g3 pstofax pstog3 program.

Can you view the ps-files correctly in a ps-viewer?

If you print to a file, the printer-control-commands are stored in the file, so you may send it to a printer later.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top