Article View: gnu.ghostscript.bug
Article #178Re: How to use A4 with GS 2.4.1 and HP III ?
From: L. Peter Deutsch
Date: Mon, 03 Aug 1992 15:04
Date: Mon, 03 Aug 1992 15:04
54 lines
3189 bytes
3189 bytes
Re <9208030612.AA29229@cookie-crisp> <12905.9207311804@thor.cf.ac.uk>: > 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. See below. > 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. In 2.5, the driver will send the correct control code to the printer, and you will be able to select A4 paper either by compiling the driver with -DA4, or by setting -sPAPERSIZE=a4 in the command line, or by invoking the a4 procedure dynamically. > p.s. Is my assumption about the margin settings correct Peter?? I don't honestly know, but at least it should be easier for you to find out. L. Peter Deutsch :: Aladdin Enterprises :: P.O. box 60264, Palo Alto, CA 94306 ghost@aladdin.com, ...decwrl!aladdin!ghost ; 415-322-0103 voice ; no fax yet "Implementation is the sincerest form of flattery."
Technical Details
Message-ID:
<9208030804.1.UUL1.3#5127@aladdin.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!aladdin.COM!ghostReferences:
ghost@aladdin.COM (L. Peter Deutsch)Show Full Headers
Complete Article Headers
Newsgroups: gnu.ghostscript.bug Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!aladdin.COM!ghost From: ghost@aladdin.COM (L. Peter Deutsch) Subject: Re: How to use A4 with GS 2.4.1 and HP III ? Message-ID: <9208030804.1.UUL1.3#5127@aladdin.com> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet References: ghost@aladdin.COM (L. Peter Deutsch) Distribution: gnu Date: Mon, 3 Aug 1992 15:04:34 GMT Approved: bug-ghostscript@prep.ai.mit.edu Lines: 56