From owner-freebsd-questions Thu Sep 7 07:43:57 1995 Return-Path: questions-owner Received: (from majordom@localhost) by freefall.freebsd.org (8.6.11/8.6.6) id HAA00652 for questions-outgoing; Thu, 7 Sep 1995 07:43:57 -0700 Received: from Relay1.Austria.EU.net (relay1.Austria.EU.net [192.92.138.47]) by freefall.freebsd.org (8.6.11/8.6.6) with SMTP id HAA00590 for ; Thu, 7 Sep 1995 07:43:50 -0700 From: marino.ladavac@aut.alcatel.at Received: from aut.alcatel.at (dnisun.aut.alcatel.at) by Relay1.Austria.EU.net with SMTP id AA04297 (5.67b/IDA-1.5 for ); Thu, 7 Sep 1995 16:43:26 +0200 Received: from atuhc16 by aut.alcatel.at (4.1/SMI-4.1/AAA-1.29/main) id AA25063; Thu, 7 Sep 95 16:43:28 +0200 Message-Id: <9509071443.AA25063@atuhc16.aut.alcatel.at> Received: by atuhc16 (1.38.193.4/16.2) id AA12013; Thu, 7 Sep 1995 16:43:21 +0200 Subject: Re: Ghostscript and HP Laserjet II To: rjbproc@vir.com (Robert Burns) Date: Thu, 7 Sep 95 16:43:20 METDST Cc: questions@freebsd.org In-Reply-To: ; from "Robert Burns" at Sep 6, 95 6:43 pm Mailer: Elm [revision: 70.85] Sender: questions-owner@freebsd.org Precedence: bulk > > GhostScript's printer drivers have an internal notion of margins. They crop > > off everything that falls out of them. I had to reduce right margin on my > > installation in order not to lose some page space. > How did you go about doing this? The hard way :( I had to edit the driver in question and recompile ghostscript. There isn't any other way I could find (and I had the source anyway, as I'm using gs3+ which cannot be commercially distributed.) > > > > The top margin is probably reduced because gs believes that you use different > > paper size than the one required by .ps file. It always tries to align > > bottom margin right. If the file requires a4, you will have to specify > > PAPERSIZE=a4 on gs command line. > > > I added PAPERSIZE=a4 to unix-lpr.sh but nothing changed. There is also a file in the ghostscript libraries which specifies the sizes of standard formats. I have changed papersizes directly there once. It may help, but doesn't have to. > I tried playing around with the resolution, page size, and pixel density > on tiff2ps and gs commands. > I did manage to get a good printout only after I changed the following > line (16) directly in the Postscript file: > %!PS-Adobe-3.0 EPSF-3.0 > %%Creator: tiff2ps > %%Title: fax000142 > %%CreationDate: Tue Sep 5 21:40:54 1995 > %%Origin: 0 0 > %%BoundingBox: 0 0 610 791 > %%Pages: (atend) > %%EndComments > %%Page: 1 1 > gsave > 100 dict begin > 609.882324 790.530640 scale > %ImageData: 1728 1076 1 1 0 1 2 "image" > /scanLine 216 string def > 1728 1076 1 > [1728 0 0 -1076 0 1076] ---> changed to [1728 0 -50 -1100 0 1076] > {currentfile scanLine readhexstring pop} bind > image Beats me. I'm PostScript illiterate, however. But I can try to play a little with tiff2ps and gs, and tell you what goes on my installation. /Alby > ----------------------------------------------------------------------------- > Robert Burns (rjbproc@vir.com) > Mtl., Ca. > -----------------------------------------------------------------------------