From owner-freebsd-questions@FreeBSD.ORG Thu Aug 26 14:17:22 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 2F3B410656A4 for ; Thu, 26 Aug 2010 14:17:22 +0000 (UTC) (envelope-from perrin@apotheon.com) Received: from cpoproxy1-pub.bluehost.com (cpoproxy1-pub.bluehost.com [69.89.21.11]) by mx1.freebsd.org (Postfix) with SMTP id F2B988FC0A for ; Thu, 26 Aug 2010 14:17:21 +0000 (UTC) Received: (qmail 25594 invoked by uid 0); 26 Aug 2010 14:17:21 -0000 Received: from unknown (HELO box543.bluehost.com) (74.220.219.143) by cpoproxy1.bluehost.com with SMTP; 26 Aug 2010 14:17:21 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=apotheon.com; h=Date:From:To:Subject:Message-ID:Mail-Followup-To:References:Mime-Version:Content-Type:Content-Disposition:In-Reply-To:User-Agent:X-Identified-User; b=Thgf29WszppOirscEkyY3qe9F2VKhXj0Kbf23KHpq4gV1Z95n29sekdg4czQBTdFSXIim9NDSIYlaFy5+SjqPU7oPmX0RPkixBvK4EROrAzd9eUYsEDOmst9RGWE6IQW; Received: from c-24-8-180-234.hsd1.co.comcast.net ([24.8.180.234] helo=kukaburra.hydra) by box543.bluehost.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1OodGY-0005YM-RI for freebsd-questions@freebsd.org; Thu, 26 Aug 2010 08:17:20 -0600 Received: by kukaburra.hydra (sSMTP sendmail emulation); Thu, 26 Aug 2010 08:14:33 -0600 Date: Thu, 26 Aug 2010 08:14:33 -0600 From: Chad Perrin To: freebsd-questions@freebsd.org Message-ID: <20100826141433.GD78539@guilt.hydra> Mail-Followup-To: freebsd-questions@freebsd.org References: <201008260631.o7Q6V6v8023918@mail.r-bonomi.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="4zI0WCX1RcnW9Hbu" Content-Disposition: inline In-Reply-To: <201008260631.o7Q6V6v8023918@mail.r-bonomi.com> User-Agent: Mutt/1.4.2.3i X-Identified-User: {2737:box543.bluehost.com:apotheon:apotheon.org} {sentby:smtp auth 24.8.180.234 authed with ren@apotheon.org} 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: Thu, 26 Aug 2010 14:17:22 -0000 --4zI0WCX1RcnW9Hbu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Aug 26, 2010 at 01:31:06AM -0500, Robert Bonomi wrote: >=20 > What are the chances that that those 'problem' PDFs are designed for a > slightly _different_ paper size, and CUPS is -nto- 'scaling' to fit the > actual paper size? When printing via a method that bypasses CUPS (using netcat), it prints just fine -- and does not fit within the confines of the top and bottom margins that are cutting off the content when printing via CUPS. The PDF does extend outside of what might be considered "reasonable" margins for something like an interoffice memo, but does not run all the way to the edges of the paper; CUPS just doesn't want to print as far "north" and "south" as the PDF's content goes, evidently. >=20 > I don't know diddly-squat about CUPS, but this sounds an awful lot like > what happens when a printer has 'letter' paper loaded, but has been told > that it has size 'A4' paper. CUPS in this case has definitely been told it has US Letter size paper. >=20 > Look for configuration settings in whatever is doing the Postscript/PDF > rendering, with regard to 'substiting' one paper size for another. This has been addressed in other discussion in this thread. It is likely pdf2ps (part of ghostscript) that is doing the translation to PostScript; the other alternative is pdftops. Both of them provide a complete PostScript file, with all content on the page, but when either the PDF or the PS output of either of those tools is printed using CUPS the same problem arises. Using pdf2ps to produce PS output, which is then sent to the printer using netcat, produces a neatly printed page with no problems, however -- other than the minor problem that I'm using netcat to send jobs to my printer rather than a front end for a proper printing queue. --=20 Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] --4zI0WCX1RcnW9Hbu Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAkx2dskACgkQ9mn/Pj01uKUmRgCdEiR/1t1yt+0z4GUsT2eG6Kob pS0AoI8sElTcC2gqOi7KxiSWL9e1tDPH =Uj6n -----END PGP SIGNATURE----- --4zI0WCX1RcnW9Hbu--