From owner-freebsd-questions@FreeBSD.ORG Thu Feb 19 22:48:23 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DCC0616A4CE for ; Thu, 19 Feb 2004 22:48:23 -0800 (PST) Received: from radicalv.com (secure.radicalv.com [216.118.91.10]) by mx1.FreeBSD.org (Postfix) with SMTP id 676B343D2D for ; Thu, 19 Feb 2004 22:48:23 -0800 (PST) (envelope-from ecrist@adtechintegrated.com) Received: (qmail 10765 invoked from network); 20 Feb 2004 06:48:21 -0000 Received: from unknown (HELO localhost.invalid) (63.228.14.245) by mail.radicalv.com with SMTP; 20 Feb 2004 06:48:21 -0000 From: Eric F Crist Organization: AdTech Integrated Systems, Inc To: FreeBSD questions List Date: Fri, 20 Feb 2004 00:48:21 -0600 User-Agent: KMail/1.6 MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200402200048.21267.ecrist@adtechintegrated.com> Subject: SOLVED: apsfilter and margins X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ecrist@adtechintegrated.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Feb 2004 06:48:24 -0000 Here's a little howto for those of you who are having problems with faulty margins with apsfilter. I'm personally using a Brother HL-1440, but the general idea still applies to all printers. 1) Edit the file /usr/local/share/gho.stscript/7.07/lib/align.ps and add %! on a line by itself, before anything else. 2) type lpr /usr/local/share/ghostscript/7.07/lib/align.ps and you will get a page that has two lines, intersecting in the lower left corner. 3) Follow the instructions on the page that prints to compute the numbers you need to enter. 4) Create a file called /etc/margins.ps that contains the following: %! << /.HWMargins [18 0 18 0] /Margins [0 -90] >> setpagedevice Your numbers will vary from mine. This is for a Brother HL-1440 Laser printer. (The bottom margin on mine is very low on the page, but I don't loose any text. Changing the bottom value seems to cut off text.) Make certain that this file is world readable. #chmod a+r /etc/margins.ps 5) Edit the file /usr/local/etc/apsfilter/apsfilterrc and find the line near the bottom containing PS_INIT (currently commented out). 6) Uncomment the line and change it to read: PS_INIT=/etc/margins.ps 7) Print a test page! Play with those numbers in the /etc/margins.ps file until you get the margins you're looking for. You do not need to restart lpd in order for changes to take effect. Hope you all enjoy this! -- Eric F Crist AdTech Integrated Systems, Inc (612) 998-3588