From owner-freebsd-questions@FreeBSD.ORG Wed Aug 25 18:07:23 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6D1521065693 for ; Wed, 25 Aug 2010 18:07:23 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id 1AA748FC13 for ; Wed, 25 Aug 2010 18:07:22 +0000 (UTC) Received: from r55.edvax.de (port-92-195-116-86.dynamic.qsc.de [92.195.116.86]) by mx02.qsc.de (Postfix) with ESMTP id EF9B624ABF; Wed, 25 Aug 2010 20:07:20 +0200 (CEST) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id o7PI7KhH001513; Wed, 25 Aug 2010 20:07:20 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Wed, 25 Aug 2010 20:07:19 +0200 From: Polytropon To: Chad Perrin Message-Id: <20100825200719.297340d6.freebsd@edvax.de> In-Reply-To: <20100825152720.GB74267@guilt.hydra> References: <20100824204552.GA70395@guilt.hydra> <20100824225829.GA70716@guilt.hydra> <20100825113852.0eb8b8af.freebsd@edvax.de> <20100825152720.GB74267@guilt.hydra> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: FreeBSD Questions Subject: Re: printing outside browser cuts off top and bottom of page X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Aug 2010 18:07:23 -0000 On Wed, 25 Aug 2010 09:27:20 -0600, Chad Perrin wrote: > Is there much I'd need to know about apsfilter to use it with lpd? No, just make sure to compile it with options PAGE=A4 PAPERSIZE=a4 A4=yes in /etc/make.conf if you need ISO A4 support. It is basically dialog-driven (/usr/local/share/apsfilter/SETUP) and self-explaining. Just select printer name, connection, paper, and quality. If you want to add specific GS options (it uses Ghostscript to convert PS into printer languages, such as PCL), you can do this via an easy configuration file, e. g. that's the way I got my duplexer working correctly. > It > seems to just be a filter used to process input and dump output, probably > used in combination with lpr via pipes -- am I wrong about that? That's right; in /etc/printcap, there are references to apsfilter only; here's an example: Laserjet|ljet4d;r=600x600;q=high;c=full;p=a4;m=auto:\ :lp=/dev/lpt0:\ :if=/usr/local/etc/apsfilter/basedir/bin/apsfilter:\ :sd=/var/spool/lpd/Laserjet:\ :lf=/var/spool/lpd/Laserjet/log:\ :af=/var/spool/lpd/Laserjet/acct:\ :mx#0:\ :sh: This is created by the apsfilter SETUP program, so no need to deal with this manually (but you CAN if you want to); apsfilter keeps its config in /usr/local/etc/apsfilter. To extent the example started, I have /usr/local/etc/apsfilter/Laserjet/apsfilterrc: PRINTER='ljet4d' PAPERSIZE='a4' METHOD='auto' QUALITY='high' COLOR='full' RESOLUTION='600x600' INTERFACE='parallel' GS_FEATURES='-q -dBATCH -dFIXEDMEDIA -dPARANOIDSAFER -dQUIET -dNOPAUSE -sDEVICE=ijs -sIjsServer=hpijs -sDeviceManufacturer="HEWLETT-PACKARD" -sDeviceModel="HP LaserJet" -dDuplex=true -dIjsUseOutputFD -sPAPERSIZE=a4 -r600' HARDWARE_DUPLEX=set DUPLEX=duplex It's basically a repeatition from /etc/printcap so the filters used by apsfilter itself can be properly configured. A central file is also present as /usr/local/etc/apsfilter/apsfilterrc where you can configure recoders, filters, pretty printing and other stuff, e. g. you can just % lpr foo.png to print a picture, or % grep "void" bar.c | lpr to get some "stylish" pretty printed output. (By the way, I did switch that off as it de-arranges source code.) > If > that's the case, I'm sure it would be pretty straightforward. It's a quite old program complex, but yes - it never failed on getting my old printers working that CUPS didn't even support. Just try to add a parallel printer with CUPS that is currently *not* connected and therefore *not* online. :-) > I was not entirely sure before today whether the 4050N could handle > straight PostScript instead of PCL, but the test I performed using nc to > see if it would print properly involved using pdf2ps and no other file > format transformations, so it seems PS is fine in this case. If PS is fast enough - use it, and get rid of the overhead bloat. In my case, I intendedly wanted to use PCL as PS works, but is too slow in comparison to PCL. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...