🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.ghostscript.bug
Article #170

Re: How to use A4 with GS 2.4.1 and HP III ?

#170
From: Paul Richards
Date: Fri, 31 Jul 1992 20:04
47 lines
2887 bytes
In article <1992Jul30.130256.11668@odin.diku.dk> dingbat@diku.dk (Niels Skov Olsen) writes:
>When I print a page on my LJ III the top is clipped and the page seems
>too short. The only device installed in the makefile is ljet3.dev.
>I have tried to adjust the page size and margin settings for this
>device in gdevjet.c but with no luck. I made following changes:
>
>	#define WIDTH_10THS 84       (was 85)
>	#define HEIGHT_10THS 117     (was 110)
>
>This change made the page a little longer. For the gs_ljet3_device I 
>tried increasing the 4 margin settings, but that didn't seem to have
>any effect on the output.
>

I seem to spend most of time fixing this problem for people. I really
think A4 paper should be catered for properly in the laserjet driver,
there are always people having trouble getting it to work.

Off the top of my head I seem to remember that you need to reduce the
bottom margin value if the top of the page is being clipped. The reason
being that the origin of the printed page is at the bottom and
increasing the margin moves the image UP the page. Getting the margin
values correct is a bit trial and error since it depends on your printer
(OK I suppose this is one excuse for not catering for it properly). Set
all the values to zero and then see what it looks like. To set them
correctly find or create a straight ASCII file that prints around the
edges of the page, print it out and then measure the distance between
the edge of the image and the edge of the paper. These will be your
margin values. I believe they're used to shift the image onto the area
of the paper that the printer can actually print on.

Another thing to check is that the page size isn't set in the printer
control codes used to initialise the printer. For the deskjet the
initialisation sequence puts the printer into US letter size regardless
of what your DIP switches are. This needs to be changed to A4. 

I may have missed a few other points, it's been a while since I hacked
this driver. If the above hints don't solve the problem then get in
touch and I'll send you a modified driver

p.s. Is my assumption about the margin settings correct Peter?? 
-- 
  Paul Richards at Cardiff university, UK.

  spedpr@uk.ac.cf.thor	Internet: spedpr%thor.cf.ac.uk@nsfnet-relay.ac.uk
  UUCP:     spedpr@thor.cf.UUCP or ...!uunet!mcsun!ukc!cf!thor!spedpr
+++
Technical Details
Message-ID: <12905.9207311804@thor.cf.ac.uk>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!thor.cf.ac.uk!spedpr
References: <1992Jul30.130256.11668@odin.diku.dk>

Show Full Headers
Complete Article Headers
Newsgroups: gnu.ghostscript.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!thor.cf.ac.uk!spedpr
From: spedpr@thor.cf.ac.uk (Paul Richards)
Subject: Re: How to use A4 with GS 2.4.1 and HP III ?
Message-ID: <12905.9207311804@thor.cf.ac.uk>
Sender: gnulists@ai.mit.edu
Organization: University of Wales College at Cardiff
References: <1992Jul30.130256.11668@odin.diku.dk>
Distribution: gnu
Date: Fri, 31 Jul 1992 20:04:17 GMT
Approved: bug-ghostscript@prep.ai.mit.edu
Lines: 48