[SuSE Linux] a2ps/apsfilter, network printer and letter size paper
An elaboration on the subject line: I have a Intel Netport print server with a HP 6MP (PS) printer. I have SuSE 5.1. After reading thru the man page for a2ps and the docs on apsfilter as well using apsfilter with network printers on SuSE SDB, I have a working setup with a couple of minor settings that I have not been able to figure out as follows: 1. "a2ps -l -2 -nH <filename>" produces no output on stdout. Per the a2ps man page, a2ps is supposed to output to stdout w/o the -P <dest printer> OR pipe to lpr tool. Instead, I notice a job is queued to the "network" printer and it prints there shortly. Can't figure out why a print job gets spooled when I don't give any printer destination OR pipe it to lpr. In fact the following command line from the a2ps man page "a2ps -l -2 -nH infile > outfile" creates a 0 length outfile with a job getting spooled to the network printer!! Seems like a bug. 2. The printout (2 pages in 1 landscape orientation) cuts out the right border of the second page i.e. right edge of the landscape page. Looking at the output it appears the dimension of the print area would fit perfect on a A4 size paper BUT in Yast I set up my system with "letter" (8.5"x11") size!! I would like to exchange settings with those who have a satisfactory 2on1 (land) output on letter size paper. TIA. -- Arun Khan - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
Arun K. Khan wrote:
An elaboration on the subject line: I have a Intel Netport print server with a HP 6MP (PS) printer. I have SuSE 5.1. After reading thru the man page for a2ps and the docs on apsfilter as well using apsfilter with network printers on SuSE SDB, I have a working setup with a couple of minor settings that I have not been able to figure out as follows:
1. "a2ps -l -2 -nH <filename>" produces no output on stdout. Per the a2ps man page, a2ps is supposed to output to stdout w/o the -P <dest printer> OR pipe to lpr tool. Instead, I notice a job is queued to the "network" printer and it prints there shortly. Can't figure out why a print job gets spooled when I don't give any printer destination OR pipe it to lpr. In fact the following command line from the a2ps man page "a2ps -l -2 -nH infile > outfile" creates a 0 length outfile with a job getting spooled to the network printer!! Seems like a bug.
I noticed this as well, but never made anything from it, because I wanted to print and this was one step less. ;-)) from aps manpage: ... input. The output is sent to lpr or to stdout. The format used is nice and compact: normally two pages on each phys ical page, borders surrounding pages, headers with useful ... and from 'a2ps -h': -i -ni INTERPRET (don't interpret) tab, bs and ff chars -Pprinter -nP SEND (don't send) directly to the printer (with options '-l' and -Pprinter) o try a2ps with the -nP option Jürgen -- ========================================== __ _ Juergen Braukmann mail: brauki@cityweb.de| / / (_)__ __ ____ __ Tel: 0201-743648 dk4jb@db0qs.#nrw.deu.eu| / /__/ / _ \/ // /\ \/ / ========================================== /____/_/_//_/\_,_/ /_/\_\ - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
Juergen Braukmann wrote:
Arun K. Khan wrote:
An elaboration on the subject line: I have a Intel Netport print server ....
(with options '-l' and -Pprinter)
so try a2ps with the -nP option
Jürgen
yapp. fast fingers. :-)) -8 -n8 display (DON'T DISPLAY) 8-bit chars -Xformat ghostscripts page format = a0,a1,...,letter -Mmargin margin size in inch, default: 1.4 inch this should have been added, too. Jürgen -- ========================================== __ _ Juergen Braukmann mail: brauki@cityweb.de| / / (_)__ __ ____ __ Tel: 0201-743648 dk4jb@db0qs.#nrw.deu.eu| / /__/ / _ \/ // /\ \/ / ========================================== /____/_/_//_/\_,_/ /_/\_\ - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
I now have a working configuration to print 2 portrait pages on 1 landscape sheet. Thanks to Juergen for pointing me to the help menu given by 'a2ps -h.' Some of the options displayed by -h are not documented in the man page :( What was happening in my earlier try out was that a2ps was defaulting the formatting of the output to an A4 size. With the following setting I get a print out that fits reasonably well on a letter (8.5"x11") size paper (left and right margin of the border are not evenly placed on the paper). a2ps -l -2 -nH -nP -m -nu -nL -Xletter <filename> | lpr -P <PS printer> ^^^^^^ Hope this of help to others. -- Arun Khan At 10:06 AM 08/29/98 +0200, Juergen Braukmann wrote:
-8 -n8 display (DON'T DISPLAY) 8-bit chars -Xformat ghostscripts page format = a0,a1,...,letter -Mmargin margin size in inch, default: 1.4 inch
- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
participants (2)
-
arunkhan@xnet.com
-
brauki@cityweb.de