From owner-freebsd-mozilla@FreeBSD.ORG Wed Sep 2 08:59:53 2009 Return-Path: Delivered-To: freebsd-mozilla@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ACE3F1065670 for ; Wed, 2 Sep 2009 08:59:53 +0000 (UTC) (envelope-from mad@madpilot.net) Received: from megatron.madpilot.net (megatron.madpilot.net [88.149.173.206]) by mx1.freebsd.org (Postfix) with ESMTP id 183928FC12 for ; Wed, 2 Sep 2009 08:59:52 +0000 (UTC) Received: by megatron.madpilot.net (Postfix, from userid 1000) id 70F9E153A; Wed, 2 Sep 2009 10:40:31 +0200 (CEST) Date: Wed, 2 Sep 2009 10:40:31 +0200 From: Guido Falsi To: "Ronald F. Guilmette" Message-ID: <20090902084031.GB26668@megatron.madpilot.net> References: <35264.1251878175@tristatelogic.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <35264.1251878175@tristatelogic.com> X-Operating-System: FreeBSD 8.0-BETA3 User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-mozilla@freebsd.org Subject: Re: Need help with major printing malfunction X-BeenThere: freebsd-mozilla@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mozilla browser issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Sep 2009 08:59:53 -0000 On Wed, Sep 02, 2009 at 12:56:15AM -0700, Ronald F. Guilmette wrote: > (Note: My printer is an old HP Laserjet 5MP. It speaks Postscript > and... I think... HP PCL 5... or maybe 6. Note also that I was never > very fond of all of the complexity of the FreeBSD lpr subsystem... > it always seemed like total overkill for a one-user system... so > I hacked up my own little Perl script that I call "printit" that just > sends whatever it is given to /dev/lp0. I used that for printing, > rather than the lpr command. In the past, Mozilla/Firefox has always > handed by little script pure Postscript... which worked out nicely > since my printer groks that... and so I'm kind of assuming that Firefox > is still converting pages to Postscript whenever I ask it to print > something, but frankly, I'm not even sure of this anymore.) I was having similar problems with an HP printer. A network one in my case. I'm using lpr with a filter. It used to send postscript verbatim to the printer and filter text through a2ps. I was having problems with bad fonts and paper sizes(I'm in europe and we use A4 here, but the printer insisted in using US letter). All the problems vanished when I finally modified the filter to also filter all ps through ghostscript and send pcl jobs to the printer. My guess is that the printer's postscript interpreter is broken(or has some "features"). Try modifying your script to filter things through ghostscript and send trhen to the printer in it's own language. I use the following ghostscript command line(from stdin to stdout...): /usr/local/bin/gs -dSAFER -dBATCH -dNOPAUSE -q -sPAPERSIZE=a4 -sDEVICE=pxlcolor -sOutputFile=- - > P.S. Before the ``upgrade'' to 3.5.1, things used to print just fine... > well... the text portions did anyway. I think firefox started using much fancier postscript after 3.0.x -- Guido Falsi