NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: PCL/PostScript printers
I'm using apsfilter and no problem with a Lexmark PCL printer.
Regards.
On Wed, Jun 25, 2008 at 8:18 AM, Andrew Doran <ad%netbsd.org@localhost> wrote:
> Hi,
>
> I had a miserable time trying to get a USB connected HP LaserJet to work
> correctly, and I thought it might be worthwhile to share what worked in the
> end. From what I can tell most PCL/PS printers seem to understand PJL, so
> with tweaks it should work for other products.
>
> This printer wouldn't print the last page of jobs, or would accept only one
> job and give up until power-cycled. After much playing around with foomatic
> and other print filters the below made it work for me.
>
> Andrew
>
> == printcap
>
> lp|local line printer:\
>
> :mx#0:sh:rw:lp=/dev/ulpn0:sd=/var/spool/output/lpd:lf=/var/log/lpd-errs:\
> :if=/local/bin/filter.sh:
>
> == /local/bin/filter.sh
>
> #!/bin/sh
> printf "\033%%-12345X@PJL\x0d\x0a"
> printf "@PJL JOB\x0d\x0a"
> printf "@PJL ENTER LANGUAGE = POSTSCRIPT\x0d\x0a"
> cat
> printf "\033%%-12345X@PJL\x0d\x0a"
> printf "@PJL EOJ\x0d\x0a"
> printf "\033%%-12345X"
>
--
Francisco Valladolid H.
-- http://bsdguy.net - Jesus Christ follower.
Home |
Main Index |
Thread Index |
Old Index