Article View: alt.os.linux.caldera
Article #5Printer top margin 1/2" for each page seems impossible - please help
From: William Demler
Date: Wed, 20 Aug 1997 00:00
Date: Wed, 20 Aug 1997 00:00
68 lines
2608 bytes
2608 bytes
I am having a printing problem with Caldera Linux Base 1.1. I can't
get an IBM Lexmark (driver HPLJ) or an HPLJ5L (driver HPLJ4) to print
with a half inch margin on the top of every page. The first page does
it, then the rest print about 1/4" from the top. After the first page
prints, the subsequent pages are missing the first line. How do I fix
this? I'm using a 486-50. The printer is connected to a parallel
port. The lpd.conf file indicates binary file type "L". I tried to
use "pr" in the /var/spool/lpd/ps/filter file and that resulted in lpq
error msgs. Please help. The addcr just adds a ^M to the end of each
line.
Here is what the filter file looks like:
----------------------------------------
#!/bin/sh
DEVICE=ljet4
RESOLUTION=300x300
PAPERSIZE=letter
SENDEOF=
(printf "\r"; cat - | sed -f addcr; cat - | pr -F -l 60 -t; printf "\r\f")
2>&1
if [ "$PAPERSIZE" = "a4" ]; then
T=A4
else
T=US
fi
nenscript -T$T -ZB -p- |
if [ "$DEVICE" = "PostScript" ]; then
cat -
else
gs -q -sDEVICE=$DEVICE \
-r$RESOLUTION \
-sPAPERSIZE=$PAPERSIZE \
-dNOPAUSE \
-dSAFER \
-sOutputFile=- -
fi
if [ "$SENDEOF" != "" ]; then
printf "\004"
fi
EXIt 0
----------------------------------------
Here is what the printcap looks like:
----------------------------------------
##PRINTTOOL## LOCAL ljet4 300x300 letter {}
ps:\
:sd=/var/spool/lpd/ps:\
:mx#0:\
:pl#60:\
:lp=/dev/lp1:\
:if=/var/spool/lpd/ps/filter:\
:sh:
##PRINTTOOL## LOCAL
lp:\
:sd=/var/spool/lpd/lp:\
:mx#0:\
:pl#60:\
:lp=/dev/lp1:\
:if=/var/spool/lpd/ps/filter:\
:sh:
I hope this is enough information to help in solving this problem.
Technical Details
Message-ID:
<01bcad65$74fd7100$c80974cf@worldnet.worldnet.att.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1103af,41227d5577f619aa,start X-Google-Attributes: gid1103af,public X-Google-Thread: 1101c9,41227d5577f619aa,start X-Google-Attributes: gid1101c9,public X-Google-Thread: 10a997,41227d5577f619aa,start X-Google-Attributes: gid10a997,public X-Google-Thread: 110f50,41227d5577f619aa,start X-Google-Attributes: gid110f50,public X-Google-Thread: 109314,41227d5577f619aa,start X-Google-Attributes: gid109314,public From: "William Demler" <wdemler@worldnet.att.net> Subject: Printer top margin 1/2" for each page seems impossible - please help Date: 1997/08/20 Message-ID: <01bcad65$74fd7100$c80974cf@worldnet.worldnet.att.net> X-Deja-AN: 268268619 Organization: AT&T WorldNet Services Newsgroups: alt.os.linux.caldera,alt.uu.comp.os.linux.questions,at.fido.linux,at.linux,comp.os.linux.misc