🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: alt.os.linux.caldera
1 messages
1 total messages Started by William Demler Wed, 20 Aug 1997 00:00
Printer top margin 1/2" for each page seems impossible - please help
#5
Author: William Demler
Date: Wed, 20 Aug 1997 00:00
68 lines
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.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads