HP LaserJet Pro P1102 / P1102w :  foo2zjs - foo2hp - foo2xqx - foo2lava - foo2qpdl - foo2oak
Support for linux printer drivers
The fastest message board... ever.
 
Condensed printing from legacy app [solved]
Posted by: anton ()
Date: July 26, 2013 10:29AM

foo2zjs is working on my Opensuse 12.3, but when I send a PCL formatted file to

lpr -l -P printer filename

it does nothing. When I remove the formatting it prints, but it does not print compressed.

Is there a way to include compressed print instructions?

Here is the beginning of the file with formatting codes:

^[E^[&l61F^[(10U^[&k2S^[&l6D^MDate 07/25/13 Time 19:19:06
Tee Company N.V. Report# KJBL User ATA Page 00
01



Edited 1 time(s). Last edit at 07/26/2013 11:28AM by rickrich.

Options: ReplyQuote
Re: Condensed printing from legacy app
Posted by: rickrich ()
Date: July 26, 2013 11:28AM

CPI/LPI is only used with plain text. Not Postscript. Use what ever created it, i.e. OpenOffice, etc. Or, use enscript/a2ps/etc. for plain text:

$ yum install enscript

$ enscript -p- -B -f Courier7 xxx.txt | lpr

Options: ReplyQuote
Re: Condensed printing from legacy app [solved]
Posted by: anton ()
Date: July 26, 2013 12:55PM

Thank you, the job without the formatting codes print as desired with Courier6.5 !!

Is there a way to incorporate that in the queue?

my program prints as follows:

dd_queue="> lpr -P queue";export dd_queue

Thanks,

Anthony

Options: ReplyQuote
Re: Condensed printing from legacy app [solved]
Posted by: anton ()
Date: July 26, 2013 06:36PM

Thank you for the help with enscript....

I solved the issue by setting my program to print to a file, then I made a looping script with a 3 second sleep timer that checked if the file was present, and if it was, it moved this file to another directory, and then ran the enscript command, sort of a enscript spooler....

Really appreciate the tip on enscript

Options: ReplyQuote


Sorry, only registered users may post in this forum.
This forum powered by Phorum.