From owner-freebsd-questions Fri Jan 15 09:33:10 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA13097 for freebsd-questions-outgoing; Fri, 15 Jan 1999 09:33:10 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from cc942873-a.ewndsr1.nj.home.com (cc942873-a.ewndsr1.nj.home.com [24.2.89.207]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA13085 for ; Fri, 15 Jan 1999 09:33:08 -0800 (PST) (envelope-from cjc@cc942873-a.ewndsr1.nj.home.com) Received: (from cjc@localhost) by cc942873-a.ewndsr1.nj.home.com (8.8.8/8.8.8) id MAA00481 for freebsd-questions@FreeBSD.ORG; Fri, 15 Jan 1999 12:34:29 -0500 (EST) (envelope-from cjc) From: "Crist J. Clark" Message-Id: <199901151734.MAA00481@cc942873-a.ewndsr1.nj.home.com> Subject: Manpage to PS and Printer Control To: freebsd-questions@FreeBSD.ORG (FreeBSD Questions) Date: Fri, 15 Jan 1999 12:34:29 -0500 (EST) Reply-To: cjclark@home.com X-Mailer: ELM [version 2.4ME+ PL40 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I know I've seen this a zillion times, but when you want to actually do it, you can never figure it out or find the reference... I want to convert some manpages to PostScript for printing. I thought it would be as easy as, % gunzip -c /usr/local/man/cat1/.gz | groff | lpr However, I wrote to a test file first rather than to the printer. I took a look with ghostview and the ps file is really messed up. It's obviously the right file, but weird stuff going on. As an aside, I tried to print the man pages with just, % man | lpr And the output looks pretty good (underlines in place, etc.), but for some reason my printer likes doing it in landscape. My printcap for the printer (an HP PostScript printer with JetDirect card) is just, lp|hall:\ :sh:\ :rm=hall:rp=raw:\ :sd=/var/spool/output/hall:lf=/var/log/lpd-errs:\ :if=/usr/local/libexec/hpif: And the hpif is just a filter from the handbook that prevents HPs from stair-stepping, #!/bin/sh # # hpif - Simple text input filter for lpd for HP-PCL based printers # Installed in /usr/local/libexec/hpif # # Simply copies stdin to stdout. Ignores all filter arguments. # Tells printer to treat LF as CR+LF. Writes a form feed character # after printing job. printf "\033&k2G" && cat && printf "\f" && exit 0 exit 2 Anyone help with that? I'd really appreciate help on manual pages to PostScript. Figuring out my printer problem would just be a bonus. ;) -- Crist J. Clark cjclark@home.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message