From owner-freebsd-questions@FreeBSD.ORG Tue Aug 24 21:49:28 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 572321065698 for ; Tue, 24 Aug 2010 21:49:28 +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 1219F8FC0C for ; Tue, 24 Aug 2010 21:49:27 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.4/8.14.4) with ESMTP id o7OLnOSS096515; Tue, 24 Aug 2010 15:49:24 -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 o7OLnO5U096512; Tue, 24 Aug 2010 15:49:24 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Tue, 24 Aug 2010 15:49:24 -0600 (MDT) From: Warren Block To: Chad Perrin In-Reply-To: <20100824204552.GA70395@guilt.hydra> Message-ID: References: <20100824204552.GA70395@guilt.hydra> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.6 (wonkity.com [127.0.0.1]); Tue, 24 Aug 2010 15:49:24 -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: Tue, 24 Aug 2010 21:49:28 -0000 On Tue, 24 Aug 2010, Chad Perrin wrote: > I'm using CUPS on FreeBSD 8.0, and any time I try to print from outside > Firefox the top and bottom of a PDF gets cut off. I don't have any means > installed for printing a PDF from inside Firefox, but Webpages and the > CUPS test page print just fine from within the browser. For instance: > > /usr/local/bin/lpr -P 4050N sheet.pdf > > (using an HP 4050N printer) > > This results in the top and bottom edge of the PDF getting cut off. I've > tried tweaking settings in GUI tools such as GtkLP to try to force it to > print the PDF at a smaller size on the page so it would fit within the > cut-off points, and it still prints exactly the same way. I've tried > adjusting margins in such GUI tools as well, to no avail. Trying to > print from Xpdf produces the same problematic results. > > If there's a command line solution to this, I haven't encountered it. > > Where should I start looking to figure out the problem? Unfortunately, > it looks like the FreeBSD Handbook only deals with lpd. The LJ4050 is a great printer, but it doesn't print PDFs natively. So you need to find what CUPS is using to convert PDFs to PostScript and adjust that. It may be an A4 to letter conversion, or it's trying to "intelligently" scale the page to fit your printer.