Re: Apsfilter and margins...

2004-02-19 Thread Malcolm Kay
On Wed, 18 Feb 2004 02:18, Eric F Crist wrote:
 -Original Message-
 From: Malcolm Kay [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, February 17, 2004 9:27 AM
 To: [EMAIL PROTECTED]; FreeBSD questions List
 Subject: Re: Apsfilter and margins...

 On Tue, 17 Feb 2004 02:33, Eric F Crist wrote:
  Hello list,
 
  Does anyone here use apsfilter?  If so, can you tell me how to fix the
 
  margins.  There is NO bottom margin (text runs off bottom of the page)
 
  and the top margin is about 2 inches.  Any idea on how to change this?

 No information about your circumstances -- printer make/model -- what
 sort of files you are passing to it.

 This is sometimes a printer adjustment. Have you read the printer
 manual?

 Malcolm Kay


 Malcolm,

 I've got Brother HL-1440 laser printer.  I throw all kinds of files to
 it.  Everything from text via command line (i.e. lpr /etc/rc.conf) to
 openoffice documents to webpages from Konquror or Firebird.

 Yes, I've read the printer manual.

 Eric F Crist

At work I have an HL1440 shared as a network printer.
I don't use Apsfilter.

It works fine with plain-text, postscript or PCL.
The printcap entry:

hl1440|raw1440|Brother HL1440:\
:sd=/var/spool/lpd/raw1440:\
:if=/usr/local/libexec/lpd/raw1440:\
:mx#0:\
:sh:\
:lp=:\
:rm=hl1440:\
:lf=/var/log/lpd-errs:

And /usr/local/libexec/lpd/raw1440:
#!/bin/sh
#
#  Treat LF as CR+LF:
#
printf \033k2G || exit 2

#
#  Read first two characters of the file
#
IFS= read -r first_line
first_two_chars=`expr $first_line : '\(..\)'`

if [ $first_two_chars = %! ]; then
#
#  It is PostScript; use Ghostscript to scan-convert and print it.
#
/usr/local/bin/gs -dSAFER -dNOPAUSE -q -sDEVICE=hl1250 -r300 \
-sOutputFile=- -  exit 0
else
#
#  Plain text or PCL, so just print it directly; print a form feed
#  at the end to eject the last page.
#
echo $first_line  cat  printf \033l0H  exit 0
fi

exit 2
---

Suggest you check what ghostscript DEVICE Apsfilter is using -- hl1250
seems to be a good choice.

Other than that you could set up something similar to the above as an
alternative printcap entry to test out your printer while bypassing
Apsfilter -- should at least resolve whether the problem is with the printer
or Apsfilter.

Malcolm


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


SOLVED: apsfilter and margins

2004-02-19 Thread Eric F Crist
Here's a little howto for those of you who are having problems with faulty 
margins with apsfilter.  I'm personally using a Brother HL-1440, but the 
general idea still applies to all printers.

1) Edit the file /usr/local/share/gho.stscript/7.07/lib/align.ps and add %! on 
a line by itself, before anything else.

2) type lpr /usr/local/share/ghostscript/7.07/lib/align.ps and you will get a 
page that has two lines, intersecting in the lower left corner.

3) Follow the instructions on the page that prints to compute the numbers you 
need to enter.

4) Create a file called /etc/margins.ps that contains the following:

%!
 /.HWMargins [18 0 18 0] /Margins [0 -90]  setpagedevice

Your numbers will vary from mine.  This is for a Brother HL-1440 Laser 
printer. (The bottom margin on mine is very low on the page, but I don't 
loose any text.  Changing the bottom value seems to cut off text.)

Make certain that this file is world readable.  
#chmod a+r /etc/margins.ps

5) Edit the file /usr/local/etc/apsfilter/apsfilterrc and find the line near 
the bottom containing PS_INIT (currently commented out).

6) Uncomment the line and change it to read:

PS_INIT=/etc/margins.ps

7) Print a test page!  Play with those numbers in the /etc/margins.ps file 
until you get the margins you're looking for.  You do not need to restart lpd 
in order for changes to take effect.

Hope you all enjoy this!
-- 
Eric F Crist
AdTech Integrated Systems, Inc
(612) 998-3588
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Apsfilter and margins...

2004-02-17 Thread Malcolm Kay
On Tue, 17 Feb 2004 02:33, Eric F Crist wrote:
 Hello list,

 Does anyone here use apsfilter?  If so, can you tell me how to fix the
 margins.  There is NO bottom margin (text runs off bottom of the page) and
 the top margin is about 2 inches.  Any idea on how to change this?


No information about your circumstances -- printer make/model -- what sort
of files you are passing to it.

This is sometimes a printer adjustment. Have you read the printer manual?

Malcolm Kay

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: Apsfilter and margins...

2004-02-17 Thread Eric F Crist
-Original Message-
From: Malcolm Kay [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 17, 2004 9:27 AM
To: [EMAIL PROTECTED]; FreeBSD questions List
Subject: Re: Apsfilter and margins...


On Tue, 17 Feb 2004 02:33, Eric F Crist wrote:
 Hello list,

 Does anyone here use apsfilter?  If so, can you tell me how to fix the

 margins.  There is NO bottom margin (text runs off bottom of the page)

 and the top margin is about 2 inches.  Any idea on how to change this?


No information about your circumstances -- printer make/model -- what
sort of files you are passing to it.

This is sometimes a printer adjustment. Have you read the printer
manual?

Malcolm Kay


Malcolm,

I've got Brother HL-1440 laser printer.  I throw all kinds of files to
it.  Everything from text via command line (i.e. lpr /etc/rc.conf) to
openoffice documents to webpages from Konquror or Firebird.

Yes, I've read the printer manual.

Eric F Crist
President
AdTech Integrated Systems, Inc
(612) 998-3588





___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Apsfilter and margins...

2004-02-16 Thread Eric F Crist
Hello list,

Does anyone here use apsfilter?  If so, can you tell me how to fix the 
margins.  There is NO bottom margin (text runs off bottom of the page) and 
the top margin is about 2 inches.  Any idea on how to change this?

Thanks.
-- 
Eric F Crist
AdTech Integrated Systems, Inc
(612) 998-3588


pgp0.pgp
Description: signature


Apsfilter printing margins?

2004-01-26 Thread Eric F Crist
Hello list!

I have installed apsfilter and finally got my ZOT lpd print server working.  
However, the bottom margin doesn't exist.  Top, left, and right are just 
fine.  I tried setting margins manually from within various aps within KDE, 
but to no avail.  Anyone have a similar problem?  
-- 
Eric F Crist
AdTech Integrated Systems, Inc
(612) 998-3588

pgp0.pgp
Description: signature