Dirk De Pauw wrote:
> In our department we have a HP 4Mplus printer.  Each time someone prints
> a LETTER pagesize we need to press the continue button for every page,
> because we don't use letter but A4.
> Is there a way to force the printer to always use A4 or to reject LETTER
> printjobs using the LPRng and the ifhp filter ?

It isn't at all clear what's happening - I'm guessing the following;

You have the console set to tell the printer that it has A4 paper
loaded.  It gets a job that wants letter and the printer asks for
you to load letter in the manual feed tray or press continue to
print on A4  ???

Letter jobs that don't specifically request letter would be printed
without hesitation because the printer wouldn't know that they're
formatted for letter.  A letter formatted job would print quite
nicely on A4, being ~17 mm longer and only ~6 mm narrower, and you
either don't notice or don't care.

We have the opposite problem here, our standard size is letter and
we get a lot of jobs formatted for A4.  In our case we loose part of
it.  My solution to the problem was to set the "pagesize policy
option to 3" by prefixing the following command (among others) to
every job.

<< /Policies << /PageSize 3 >> setpagedevice

What this does is tell the printer that if it doesn't have the right
sized paper that it should rescale the image to fit on what it does
have.  Of course this works only if the job specifically requests A4
with, for example, the command;

<</PageSize [595 842] /ImagingBBox null>> setpagedevice

Without such a command in the job the printer won't know that A4 is
being requested and print it on whatever is loaded - so we loose
part of it.  It doesn't happen very often so I've just been editing
the above command into such jobs thus trigger the rescaling.

You guys could do something similar.

The default policy is 0 which raises an error and action is printer
dependent.  Policy 1 is to ignore the request etc.  I would suggest
option 3, like we do, which would result in centered images.

Of course it's not quite as simple as prefixing the above command to
the postscript.  You have to strip off all the PJL and start the
file with a %! in case the printer is in "auto" personality. The
simplest would be to insert the above command right after the
%!PS-Adobe-3.0 line.

Another alternative it to delete the PageSize command but that's
not so easy to automate because it can appear mixed up with other
commands and is not necessarily easily recognizable.

And of course it's still not that simple because I've been running
into jobs that try to set their own pagesize policy option (and
not to 3).  So far at least, not often.

        Jim


-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:                           | example:
subscribe LIST <mailaddr>       |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr>     |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------

Reply via email to