From owner-freebsd-questions@FreeBSD.ORG Wed Aug 25 13:57:33 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 4E04D10656A6 for ; Wed, 25 Aug 2010 13:57:33 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id DF9968FC1F for ; Wed, 25 Aug 2010 13:57:32 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.4/8.14.4) with ESMTP id o7PDvTMr031232; Wed, 25 Aug 2010 07:57:30 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.4/8.14.4/Submit) with ESMTP id o7PDvTuD031229; Wed, 25 Aug 2010 07:57:29 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Wed, 25 Aug 2010 07:57:29 -0600 (MDT) From: Warren Block To: Chad Perrin In-Reply-To: <20100825064113.GC71916@guilt.hydra> Message-ID: References: <20100824204552.GA70395@guilt.hydra> <20100824225829.GA70716@guilt.hydra> <20100825002801.GJ2236@libertas.local.camdensoftware.com> <20100825033334.GK2236@libertas.local.camdensoftware.com> <20100825064113.GC71916@guilt.hydra> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.6 (wonkity.com [127.0.0.1]); Wed, 25 Aug 2010 07:57:30 -0600 (MDT) 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 List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Aug 2010 13:57:33 -0000 On Wed, 25 Aug 2010, Chad Perrin wrote: > On Tue, Aug 24, 2010 at 08:33:34PM -0700, Chip Camden wrote: >> Quoth Warren Block on Tuesday, 24 August 2010: >>> >>> It appears that PPDs are stored in the reasonably-named >>> /usr/local/etc/cups/ppd. There's a PPD for the LJ4050 in >>> print/foomatic-db... >>> >>> And it has >>> *ImageableArea Letter/Letter: "12.24 12.06 599.76 780.06" >>> >>> 12-point margins on that printer sound about right. >> >> Mine had 18 and 36 for the first two (for an OfficeJet 7310). I tried >> doubling them but that didn't seem to make a difference. Did I need to >> restart something to get that to take effect? > > I suspect those correspond to the margin settings in GtkLP, but fiddling > with those settings has zero observable effect on printing. Applications should be able to get those values from the PPD. The PDF in question has a top margin of 18 points, a bottom margin of 21 points, and a printed area height and width of about 576 and 755. It fits within the printable area of most lasers, and prints fine on my LJ4250. The bottom will be cut off on a lot of inkjets due to their paper feed. For another test, use pdf2ps and feed the PS output directly to the printer, bypassing CUPS. If the LJ4050N Ethernet is connected (and it really should be), you can use nc something like this (untested): # pdf2ps test.pdf - | nc lj4050hostname 9100 If that has cut off margins, it's a setting within the printer. If it prints fine, it's CUPS.